Skip to content

Commit

Permalink
test(integration): adjust fixture to work with turbopack (#59595)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored Dec 13, 2023
1 parent e3b0294 commit 1145d27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions test/integration/server-side-dev-errors/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('server-side dev errors', () => {
const err = stderr.slice(stderrIdx)

return err.includes('pages/uncaught-rejection.js') &&
err.includes('7:19') &&
(err.includes('7:19') || err.includes('7:5')) &&
err.includes('getServerSideProps') &&
err.includes('catch this rejection')
? 'success'
Expand All @@ -222,7 +222,7 @@ describe('server-side dev errors', () => {
const cleanStderr = stripAnsi(stderr.slice(stderrIdx))

return cleanStderr.includes('pages/uncaught-empty-rejection.js') &&
cleanStderr.includes('7:19') &&
(cleanStderr.includes('7:19') || cleanStderr.includes('7:5')) &&
cleanStderr.includes('getServerSideProps') &&
cleanStderr.includes('new Error()')
? 'success'
Expand All @@ -238,7 +238,7 @@ describe('server-side dev errors', () => {
const err = stderr.slice(stderrIdx)

return err.includes('pages/uncaught-exception.js') &&
err.includes('7:10') &&
(err.includes('7:10') || err.includes('7:5')) &&
err.includes('getServerSideProps') &&
err.includes('catch this exception')
? 'success'
Expand All @@ -254,7 +254,7 @@ describe('server-side dev errors', () => {
const cleanStderr = stripAnsi(stderr.slice(stderrIdx))

return cleanStderr.includes('pages/uncaught-empty-exception.js') &&
cleanStderr.includes('7:10') &&
(cleanStderr.includes('7:10') || cleanStderr.includes('7:5')) &&
cleanStderr.includes('getServerSideProps') &&
cleanStderr.includes('new Error()')
? 'success'
Expand Down
5 changes: 2 additions & 3 deletions test/turbopack-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14501,14 +14501,13 @@
"server-side dev errors should show server-side error for dynamic api route correctly",
"server-side dev errors should show server-side error for dynamic gssp page correctly",
"server-side dev errors should show server-side error for gsp page correctly",
"server-side dev errors should show server-side error for gssp page correctly"
],
"failed": [
"server-side dev errors should show server-side error for gssp page correctly",
"server-side dev errors should show server-side error for uncaught empty exception correctly",
"server-side dev errors should show server-side error for uncaught empty rejection correctly",
"server-side dev errors should show server-side error for uncaught exception correctly",
"server-side dev errors should show server-side error for uncaught rejection correctly"
],
"failed": [],
"pending": [],
"flakey": [],
"runtimeError": false
Expand Down

0 comments on commit 1145d27

Please sign in to comment.