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
01826678
Unverified
Commit
01826678
authored
May 02, 2024
by
Sebastian Silbermann
Committed by
GitHub
May 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve test assertions (#65285)
Closes NEXT-3286
parent
2bbeab87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
index.test.js
test/integration/auto-export/test/index.test.js
+10
-7
No files found.
test/integration/auto-export/test/index.test.js
View file @
01826678
...
@@ -93,13 +93,16 @@ describe('Auto Export', () => {
...
@@ -93,13 +93,16 @@ describe('Auto Export', () => {
it
(
'should include error link when hydration error does occur'
,
async
()
=>
{
it
(
'should include error link when hydration error does occur'
,
async
()
=>
{
const
browser
=
await
webdriver
(
appPort
,
'/post-1/hydrate-error'
)
const
browser
=
await
webdriver
(
appPort
,
'/post-1/hydrate-error'
)
const
logs
=
await
browser
.
log
()
const
logs
=
await
browser
.
log
()
expect
(
expect
(
logs
).
toEqual
(
logs
.
some
((
log
)
=>
expect
.
arrayContaining
([
log
.
message
.
includes
(
{
'See more info here: https://nextjs.org/docs/messages/react-hydration-error'
message
:
expect
.
stringContaining
(
)
'See more info here: https://nextjs.org/docs/messages/react-hydration-error'
)
),
).
toBe
(
true
)
source
:
'error'
,
},
])
)
})
})
})
})
})
})
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