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
627a5ffb
Unverified
Commit
627a5ffb
authored
Oct 23, 2024
by
Josh Story
Committed by
GitHub
Oct 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes error message asserts and lints (#71747)
parent
c464672d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dynamic-io-errors.prospective-fallback.test.ts
...-io-errors/dynamic-io-errors.prospective-fallback.test.ts
+2
-2
dynamic-io-errors.test.ts
test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts
+2
-2
No files found.
test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.prospective-fallback.test.ts
View file @
627a5ffb
...
@@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
...
@@ -28,7 +28,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
}
}
expect
(
next
.
cliOutput
).
toContain
(
expect
(
next
.
cliOutput
).
toContain
(
'In Route "/blog/[slug]" this component accessed data without a
fallback UI available somewhere above it using Suspense
.'
'In Route "/blog/[slug]" this component accessed data without a
Suspense boundary above it to provide a fallback UI
.'
)
)
})
})
...
@@ -46,7 +46,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
...
@@ -46,7 +46,7 @@ describe(`Dynamic IO Prospective Fallback`, () => {
await
next
.
start
()
await
next
.
start
()
expect
(
next
.
cliOutput
).
not
.
toContain
(
expect
(
next
.
cliOutput
).
not
.
toContain
(
'In Route "/blog/[slug]" this component accessed data without a
fallback UI available somewhere above it using Suspense
.'
'In Route "/blog/[slug]" this component accessed data without a
Suspense boundary above it to provide a fallback UI
.'
)
)
})
})
}
}
...
...
test/e2e/app-dir/dynamic-io-errors/dynamic-io-errors.test.ts
View file @
627a5ffb
...
@@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) {
...
@@ -322,7 +322,7 @@ function runTests(options: { withMinification: boolean }) {
const
expectError
=
createExpectError
(
next
.
cliOutput
)
const
expectError
=
createExpectError
(
next
.
cliOutput
)
expectError
(
expectError
(
'In Route "/" this component accessed data without a
fallback UI available somewhere above it using Suspense
.'
,
'In Route "/" this component accessed data without a
Suspense boundary above it to provide a fallback UI
.'
,
// Turbopack doesn't support disabling minification yet
// Turbopack doesn't support disabling minification yet
withMinification
||
isTurbopack
?
undefined
:
'IndirectionTwo'
withMinification
||
isTurbopack
?
undefined
:
'IndirectionTwo'
)
)
...
@@ -331,7 +331,7 @@ function runTests(options: { withMinification: boolean }) {
...
@@ -331,7 +331,7 @@ function runTests(options: { withMinification: boolean }) {
// one task actually reports and error at the moment. We should fix upstream but for now we exclude the second error when PPR is off
// one task actually reports and error at the moment. We should fix upstream but for now we exclude the second error when PPR is off
// because we are using canary React and renderToReadableStream rather than experimental React and prerender
// because we are using canary React and renderToReadableStream rather than experimental React and prerender
expectError
(
expectError
(
'In Route "/" this component accessed data without a
fallback UI available somewhere above it using Suspense
.'
,
'In Route "/" this component accessed data without a
Suspense boundary above it to provide a fallback UI
.'
,
// Turbopack doesn't support disabling minification yet
// Turbopack doesn't support disabling minification yet
withMinification
||
isTurbopack
?
undefined
:
'IndirectionThree'
withMinification
||
isTurbopack
?
undefined
:
'IndirectionThree'
)
)
...
...
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