-
-
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
fix: set cwd in babel-jest #7574
Conversation
@@ -35,16 +41,6 @@ export const createTransformer = (options: any): Transformer => { | |||
delete options.cacheDirectory; | |||
delete options.filename; | |||
|
|||
const loadBabelOptions = filename => |
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.
no real reason for this extra function
@@ -0,0 +1,22 @@ | |||
/** |
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.
this test fails without the change in babel-jest
, but it only failed due to the other files in this project having flow
code in them. Should we have a more explicit test? Not sure how, though, so ideas welcome
Codecov Report
@@ Coverage Diff @@
## master #7574 +/- ##
=======================================
Coverage 67.99% 67.99%
=======================================
Files 248 248
Lines 9490 9490
Branches 6 5 -1
=======================================
Hits 6453 6453
Misses 3035 3035
Partials 2 2
Continue to review full report at Codecov.
|
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 think this test tells enough
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
Fixes #7438. See that for motivation
Test plan
Test added