Buckets:
| import { nextTestSetup } from 'e2e-utils' | |
| import { waitForRedbox, waitForNoRedbox } from 'next-test-utils' | |
| describe('develop - app-dir - edge errros hmr', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should recover from build errors when server component error', async () => { | |
| const browser = await next.browser('/') | |
| const clientComponentSource = await next.readFile('app/comp.server.js') | |
| await next.patchFile('app/comp.server.js', (content) => { | |
| return content.replace('{/* < */}', '<') // uncomment | |
| }) | |
| await waitForRedbox(browser) | |
| await next.patchFile('app/comp.server.js', clientComponentSource) | |
| await waitForNoRedbox(browser) | |
| }) | |
| it('should recover from build errors when client component error', async () => { | |
| const browser = await next.browser('/') | |
| const clientComponentSource = await next.readFile('app/comp.client.js') | |
| await next.patchFile('app/comp.client.js', (content) => { | |
| return content.replace('{/* < */}', '<') // uncomment | |
| }) | |
| await waitForRedbox(browser) | |
| await next.patchFile('app/comp.client.js', clientComponentSource) | |
| await waitForNoRedbox(browser) | |
| }) | |
| }) | |
Xet Storage Details
- Size:
- 1.19 kB
- Xet hash:
- bf291d1a57cc929abb4e89acf94e18132bb86ceec1150c6c33be39ac2ccae959
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.