next.js/test/e2e/app-dir/disable-logging-route/disable-logging-route.test.ts
disable-logging-route.test.ts15 lines406 B
import { nextTestSetup } from 'e2e-utils'

describe('app-dir - disable-logging-route', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('should not log if disabled logging', async () => {
    const html = await next.render('/slug1')
    expect(html).toContain('slug1')
    expect(next.cliOutput).not.toContain('Compiling')
    expect(next.cliOutput).not.toContain('GET')
  })
})
Quest for Codev2.0.0
/
SIGN IN