-
Notifications
You must be signed in to change notification settings - Fork 24.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
Fix jestSupport preprocessor for babel-core location #4542
Fix jestSupport preprocessor for babel-core location #4542
Conversation
By analyzing the blame information on this pull request, we identified @cpojer, @none and @voideanvalue to be potential reviewers. |
@@ -11,6 +11,15 @@ | |||
const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction'); | |||
const path = require('path'); | |||
const transformer = require('../packager/transformer.js'); | |||
const fs = require('fs'); | |||
|
|||
var babel_core_location = path.join(__dirname, '../node_modules/babel-core/package.json'); |
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.
Can you change this to camel case please?
babelCoreLocation
@adrienthiery updated the pull request. |
try { | ||
fs.lstatSync(babelCoreLocation); | ||
} | ||
catch(e) { |
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.
nit: move catch
to the same line as }
@adrienthiery updated the pull request. |
@adrienthiery do you have any updates for this pull request? It's been a while so we wanted to check in and see if you've looked at the requested changes. |
This appears to have been resolved by a370641. Thanks! |
Proposition to fix issue #3999
All feedback appreciated, this is my first Pull request on a big project. :)