Buckets:
| import { nextTestSetup } from 'e2e-utils' | |
| import { check } from 'next-test-utils' | |
| describe('RSC binary serialization', () => { | |
| const { next, skipped } = nextTestSetup({ | |
| files: __dirname, | |
| skipDeployment: true, | |
| dependencies: { | |
| 'server-only': 'latest', | |
| }, | |
| }) | |
| if (skipped) return | |
| afterEach(async () => { | |
| await next.stop() | |
| }) | |
| it('should correctly encode/decode binaries and hydrate', async function () { | |
| const browser = await next.browser('/') | |
| await check(async () => { | |
| const content = await browser.elementByCss('body').text() | |
| return content.includes('utf8 binary: hello') && | |
| content.includes('arbitrary binary: 255,0,1,2,3') && | |
| content.includes('hydrated: true') | |
| ? 'success' | |
| : 'fail' | |
| }, 'success') | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 801 Bytes
- Xet hash:
- 94c72d522c771725a277809c27acbcc670b94f8bf03b5a9c975592b10a70760e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.