-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix: print AggregateError
to display
#15346
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
7853063
to
1d704bd
Compare
AggregateErrors
to displayAggregateError
to display
1d704bd
to
d9d869a
Compare
return ''; | ||
} else { | ||
const config = { | ||
rootDir: process.cwd(), |
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.
we cannot use this as expect
is meant to work in the browser (and rootDir
might not even be cwd
).
If we are to do this, we'll need to pass the config object somehow
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.
I just carry this from line 462
.
Why do not it work here?
@@ -101,6 +101,7 @@ | |||
"jest-jasmine-ci": "yarn jest-jasmine --color --config jest.config.ci.mjs", | |||
"jest-coverage": "yarn jest --coverage", | |||
"lint": "eslint . --cache --ext js,jsx,cjs,mjs,ts,tsx,md", | |||
"lint:fix": "eslint ./packages/expect/src/toThrowMatchers.ts --cache --fix", |
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.
"lint:fix": "eslint ./packages/expect/src/toThrowMatchers.ts --cache --fix", |
Closes #14704
Test plan
Console before change:
Console after change: