Skip to content

Commit cc23190

Browse files
committed
update snapshot test/development/acceptance/ReactRefreshLogBox.test.ts
1 parent 94967e8 commit cc23190

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/development/acceptance/ReactRefreshLogBox.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,22 @@ describe('ReactRefreshLogBox', () => {
330330
],
331331
}
332332
`)
333+
} else if (isRspack) {
334+
await expect(browser).toDisplayRedbox(`
335+
{
336+
"description": "no",
337+
"environmentLabel": null,
338+
"label": "Runtime Error",
339+
"source": "FunctionDefault.js (1:51) @ FunctionDefault
340+
> 1 | export default function FunctionDefault() { throw new Error('no'); }
341+
| ^",
342+
"stack": [
343+
"FunctionDefault FunctionDefault.js (1:51)",
344+
"<FIXME-next-dist-dir>",
345+
"<FIXME-next-dist-dir>",
346+
],
347+
}
348+
`)
333349
} else {
334350
await expect(browser).toDisplayRedbox(`
335351
{

0 commit comments

Comments
 (0)