Unverified Commit d953de62 authored by OJ Kwon's avatar OJ Kwon Committed by GitHub

test(fixture): update snapshot (#62894)

Closes PACK-2664
parent 9798ae52
......@@ -955,13 +955,28 @@ describe.each([[''], ['/docs']])(
let redboxSource = await getRedboxSource(browser)
redboxSource = redboxSource.replace(`${next.testDir}`, '.')
redboxSource = redboxSource.substring(
0,
redboxSource.indexOf('`----')
)
if (process.env.TURBOPACK) {
expect(next.normalizeTestDirContent(redboxSource))
.toMatchInlineSnapshot(`
"./components/parse-error.js:3:1
Parsing ecmascript source code failed
1 | This
2 | is
> 3 | }}}
| ^
4 | invalid
5 | js
Expression expected"
`)
} else {
redboxSource = redboxSource.substring(
0,
redboxSource.indexOf('`----')
)
expect(next.normalizeTestDirContent(redboxSource))
.toMatchInlineSnapshot(`
expect(next.normalizeTestDirContent(redboxSource))
.toMatchInlineSnapshot(`
"./components/parse-error.js
Error:
x Expression expected
......@@ -974,6 +989,7 @@ describe.each([[''], ['/docs']])(
5 | js
"
`)
}
await next.patchFile(aboutPage, aboutContent)
......
......@@ -1633,16 +1633,16 @@
"basic HMR, basePath: \"/docs\" should have correct compile timing after fixing error",
"basic HMR, basePath: \"/docs\" should have correct router.isReady for auto-export page",
"basic HMR, basePath: \"/docs\" should have correct router.isReady for getStaticProps page",
"basic HMR, basePath: \"/docs\" should show hydration error correctly"
"basic HMR, basePath: \"/docs\" should show hydration error correctly",
"basic HMR, basePath: \"\" Error Recovery should recover after loader parse error in an imported file",
"basic HMR, basePath: \"/docs\" Error Recovery should recover after loader parse error in an imported file"
],
"failed": [
"basic HMR, basePath: \"\" Error Recovery should recover after loader parse error in an imported file",
"basic HMR, basePath: \"\" Error Recovery should recover after webpack parse error in an imported file",
"basic HMR, basePath: \"\" Error Recovery should recover from errors in getInitialProps in client",
"basic HMR, basePath: \"\" Error Recovery should recover from errors in the render function",
"basic HMR, basePath: \"\" Full reload should warn about full reload in cli output - anonymous page function",
"basic HMR, basePath: \"\" Full reload should warn about full reload in cli output - runtime-error",
"basic HMR, basePath: \"/docs\" Error Recovery should recover after loader parse error in an imported file",
"basic HMR, basePath: \"/docs\" Error Recovery should recover after webpack parse error in an imported file",
"basic HMR, basePath: \"/docs\" Error Recovery should recover from errors in getInitialProps in client",
"basic HMR, basePath: \"/docs\" Error Recovery should recover from errors in the render function",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment