Skip to content

Commit

Permalink
test: run preview.headers test (#11315)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 11, 2022
1 parent 388adf5 commit 9f65af1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions playground/fs-serve/__tests__/fs-serve.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ describe.runIf(isServe)('main', () => {
})

describe('fetch', () => {
// Note: this should pass in build too, but the test setup doesn't use Vite preview
test.runIf(isServe)('serve with configured headers', async () => {
test('serve with configured headers', async () => {
const res = await fetch(viteTestUrl + '/src/')
expect(res.headers.get('x-served-by')).toBe('vite')
})
Expand Down

0 comments on commit 9f65af1

Please sign in to comment.