Buckets:
silverwolf-x/project / test /e2e /app-dir /client-reference-chunking /client-reference-chunking.test.ts
| import { nextTestSetup } from 'e2e-utils' | |
| import { getClientReferenceManifest } from 'next-test-utils' | |
| describe('client-reference-chunking', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| skipDeployment: true, | |
| }) | |
| it('should use the same chunks for client references across routes', async () => { | |
| const browser = await next.browser('/') | |
| await browser.elementByCss('a[href="/issue"]').click() | |
| expect(await browser.elementByCss('body').text()).toContain( | |
| 'Welcome to the Issue Page' | |
| ) | |
| let rootManifest = getClientReferenceManifest(next, '/page') | |
| let issueManifest = getClientReferenceManifest(next, '/issue/page') | |
| // These two routes have the same client component references, so these should be exactly the | |
| // same (especially the `chunks` field) | |
| expect(rootManifest.clientModules).toEqual(issueManifest.clientModules) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 898 Bytes
- Xet hash:
- 5e5016324e04489ffe9f0b7f57e30f018ff0847b94fdebfaf3c711cde6a31ff5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.