-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps(jest): upgrade to 27.0.3 #12454
Changes from all commits
f234919
c1a3c05
56c9b5e
9c2f932
56eabf6
2b8955d
edb7cc8
b69b8a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ module.exports = { | |
'**/docs/**/*.test.js', | ||
], | ||
transform: {}, | ||
prettierPath: null, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,6 @@ describe('ReportUIFeatures', () => { | |
global.I18n = undefined; | ||
global.ReportUIFeatures = undefined; | ||
global.matchMedia = undefined; | ||
global.self.matchMedia = undefined; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I.... have no idea how this was working ... but I am extremely curious. maybe before |
||
global.CriticalRequestChainRenderer = undefined; | ||
global.DetailsRenderer = undefined; | ||
global.CategoryRenderer = undefined; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ describe('Lighthouse Viewer', () => { | |
if (pageErrors.length > 0) console.error(pageErrors); | ||
|
||
await Promise.all([ | ||
new Promise(resolve => server.close(resolve)), | ||
server.close(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another brainteaser!
The brainteaser is... why did this ever work? I suppose before, Jest simply gave up at some point and shutdown. But now it will fail if |
||
browser && browser.close(), | ||
]); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jestjs/jest#9828 disallowed these functions from being nested in a test case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh dang yeah, I did not expect that to work haha