Download next.js/test/development/internal-traces/internal-traces.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/internal-traces/internal-traces.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/internal-traces/internal-traces.test.ts
-
curl -L -o internal-traces.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/internal-traces/internal-traces.test.ts
501 Bytes
| 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' | |
| ) | |
| }) | |
| }) | |