Skip to content
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

Conversation

adrienthiery
Copy link
Contributor

Proposition to fix issue #3999

All feedback appreciated, this is my first Pull request on a big project. :)

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @cpojer, @none and @voideanvalue to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Dec 3, 2015
@@ -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');
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@adrienthiery updated the pull request.

try {
fs.lstatSync(babelCoreLocation);
}
catch(e) {
Copy link
Contributor

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 }

@facebook-github-bot
Copy link
Contributor

@adrienthiery updated the pull request.

@ghost
Copy link

ghost commented Mar 24, 2016

@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.

@jsierles
Copy link
Contributor

This appears to have been resolved by a370641. Thanks!

@jsierles jsierles closed this Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants