Buckets:
| import { nextTestSetup } from 'e2e-utils' | |
| describe('cache-components', () => { | |
| const { next, isNextDev, skipped } = nextTestSetup({ | |
| files: __dirname, | |
| skipDeployment: true, | |
| }) | |
| if (skipped) { | |
| return | |
| } | |
| it('should not have route specific errors', async () => { | |
| expect(next.cliOutput).not.toMatch('Error: Route "/') | |
| expect(next.cliOutput).not.toMatch('Error occurred prerendering page') | |
| }) | |
| it('should prerender pages with cached Math.random() calls', async () => { | |
| let $ = await next.render$('/random/cached', {}) | |
| if (isNextDev) { | |
| expect($('#layout').text()).toBe('at runtime') | |
| expect($('#page').text()).toBe('at runtime') | |
| } else { | |
| expect($('#layout').text()).toBe('at buildtime') | |
| expect($('#page').text()).toBe('at buildtime') | |
| } | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 811 Bytes
- Xet hash:
- fdd4e9e37960bb1ab1d6449500e0298a0bbc63c91d17b9bbf7572f04e65fd40c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.