File size: 501 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { FileRef, nextTestSetup } from 'e2e-utils'
import path from 'node:path'

describe('internal traces', () => {
  const { next } = nextTestSetup({
    files: new FileRef(path.join(__dirname)),
  })

  it('should not write long internal traces to stdio', async () => {
    await next.render$('/traces')
    expect(next.cliOutput.length).toBeLessThan(256 * 1024 /* 256KiB of ascii */)
    expect(next.cliOutput).not.toContain(
      'https://nextjs.org/docs/messages/large-page-data'
    )
  })
})