Files
vercel__next.js/test/e2e/test-utils-tests/basic/basic.test.ts
Leah ca1b6184c8 chore: update test template to use nextTestSetup (#62154)
### Why?

Less indentation and allows for IDE integration.



Closes PACK-2523
2024-02-16 17:30:54 +01:00

13 lines
274 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('nextTestSetup', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should work', async () => {
const res = await next.fetch('/')
expect(await res.text()).toContain('Hello World')
})
})