-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Move Jest config to json #12402
Move Jest config to json #12402
Conversation
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.
Tested locally, everything still works normally. Config looks good. Just had one question.
package.json
Outdated
@@ -94,7 +94,7 @@ | |||
"autoprefixer-loader": "2.0.0", | |||
"babel-cli": "6.18.0", | |||
"babel-core": "6.21.0", | |||
"babel-jest": "20.0.0", | |||
"babel-jest": "^20.0.3", |
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're locking the rest of our dependencies to specific versions. Any reason to deviate for these dependencies?
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.
Bah, we really need to switch to Yarn. Fixed
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.
LGTM! 🇨🇨
5.x: eb11977 |
I moved the Jest config to a JSON file instead of having it in JS and stringifying it etc. This makes it simpler to for example run debugger on the Jest tests (see https://facebook.github.io/jest/docs/troubleshooting.html).
(The only change is removing the
resolve
and "hard-coding" the path to the babel transform)