Skip to content

Commit 22d72ec

Browse files
committed
revert snapshot
1 parent 9c3bbcf commit 22d72ec

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

test/development/acceptance/ReactRefreshRegression.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ describe('ReactRefreshRegression', () => {
315315
"description": "boom",
316316
"environmentLabel": null,
317317
"label": "Runtime Error",
318-
"source": "pages/index.js (1:36) @ __rspack_default_export
318+
"source": "pages/index.js (1:36) @ default
319319
> 1 | export default function () { throw new Error('boom'); }
320320
| ^",
321321
"stack": [
322-
"__rspack_default_export pages/index.js (1:36)",
322+
"default pages/index.js (1:36)",
323323
],
324324
}
325325
`)

test/development/basic/hmr/run-error-recovery-hmr-test.util.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -442,25 +442,25 @@ export function runErrorRecoveryHmrTest(nextConfig: {
442442
} else if (process.env.NEXT_RSPACK) {
443443
expect(trimEndMultiline(await getRedboxSource(browser)))
444444
.toMatchInlineSnapshot(`
445-
"./components/parse-error.xyz
446-
× Module parse failed:
447-
╰─▶ × JavaScript parse error: Expression expected
448-
╭─[3:0]
449-
1 │ This
450-
2 │ is
451-
3 │ }}}
452-
· ─
453-
4 │ invalid
454-
5 │ js
455-
╰────
456-
457-
help:
458-
You may need an appropriate loader to handle this file type.
459-
460-
Import trace for requested module:
461-
./components/parse-error.xyz
462-
./pages/hmr/about8.js"
463-
`)
445+
"./components/parse-error.xyz
446+
× Module parse failed:
447+
╰─▶ × JavaScript parse error: Expression expected
448+
╭─[3:0]
449+
1 │ This
450+
2 │ is
451+
3 │ }}}
452+
· ─
453+
4 │ invalid
454+
5 │ js
455+
╰────
456+
457+
help:
458+
You may need an appropriate loader to handle this file type.
459+
460+
Import trace for requested module:
461+
./components/parse-error.xyz
462+
./pages/hmr/about8.js"
463+
`)
464464
} else {
465465
expect(await getRedboxSource(browser)).toMatchInlineSnapshot(`
466466
"./components/parse-error.xyz

test/development/pages-dir/client-navigation/rendering.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,11 @@ describe('Client Navigation rendering', () => {
264264
"description": "This is an expected error",
265265
"environmentLabel": null,
266266
"label": "Runtime Error",
267-
"source": "pages/error-inside-page.js (2:9) @ __rspack_default_export
267+
"source": "pages/error-inside-page.js (2:9) @ default
268268
> 2 | throw new Error('This is an expected error')
269269
| ^",
270270
"stack": [
271-
"__rspack_default_export pages/error-inside-page.js (2:9)",
271+
"default pages/error-inside-page.js (2:9)",
272272
],
273273
}
274274
`)

0 commit comments

Comments
 (0)