-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fully cleanup source-map-support #15233
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
fb7358c
to
47de10c
Compare
packages/jest-runner/src/runTest.ts
Outdated
let e = error; | ||
while (typeof e === 'object' && 'stack' in e) { | ||
e.stack; | ||
e = e?.cause ?? {}; |
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.
do we need the ??
part? the while
condition does a typeof
which should be fine? Or is it to guard against null
?
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.
@SimenB Pretty much, yeah.
Maybe it's better to add the null
protection explicitly to the while
condition; this way, it would also protect against a null
been thrown for some reason.
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.
could you add a changelog?
…rce-map-support
47de10c
to
338243a
Compare
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.
thanks!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Split from #15215. Please see that PR's description and comments for more information.