File size: 471 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { nextTestSetup } from 'e2e-utils'
describe('app-only-flag', () => {
const { next } = nextTestSetup({
files: __dirname,
buildCommand: 'pnpm next build --experimental-app-only',
})
it('should serve app route', async () => {
const $ = await next.render$('/')
expect($('p').text()).toBe('hello world')
})
it('should not serve about route', async () => {
const res = await next.fetch('/about')
expect(res.status).toBe(404)
})
})
|