Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
d953de62
Unverified
Commit
d953de62
authored
Mar 05, 2024
by
OJ Kwon
Committed by
GitHub
Mar 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(fixture): update snapshot (#62894)
Closes PACK-2664
parent
9798ae52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
hmr.test.ts
test/development/basic/hmr.test.ts
+22
-6
turbopack-tests-manifest.json
test/turbopack-tests-manifest.json
+3
-3
No files found.
test/development/basic/hmr.test.ts
View file @
d953de62
...
...
@@ -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
)
...
...
test/turbopack-tests-manifest.json
View file @
d953de62
...
...
@@ -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"
,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment