-
-
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
moduleFileExtensions extensions is now passed to babel-jest #5110
Conversation
Can you add a test showing what it enables? And please update the changelog as well |
CHANGELOG: moduleFileExtensions now passed to babel transformer
@@ -0,0 +1,550 @@ | |||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. |
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.
remove this
@@ -0,0 +1,14 @@ | |||
{ | |||
"dependencies": { | |||
"babel-preset-env": "^1.6.1" |
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 have a dependency on babel-preset-env
in the root already, so this is not needed https://github.com/facebook/jest/blob/1521c516c2cae8f4bfe41605640f273f9c17fb87/package.json#L18
@@ -120,3 +120,25 @@ describe('multiple-transformers', () => { | |||
expect(json.numPassedTests).toBe(1); | |||
}); | |||
}); | |||
|
|||
describe('ecmascript-modules-support', () => { | |||
skipOnWindows.suite(); |
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.
do we have to skip it on windows?
Codecov Report
@@ Coverage Diff @@
## master #5110 +/- ##
======================================
Coverage 60.7% 60.7%
======================================
Files 201 201
Lines 6691 6691
Branches 4 4
======================================
Hits 4062 4062
Misses 2628 2628
Partials 1 1 Continue to review full report at Codecov.
|
@@ -0,0 +1,549 @@ | |||
# yarn lockfile v1 |
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 meant delete this whole file, not the first line in particular 🙂
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.
hehe
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.
Great! Could you add a line to the changelog as well, and I think this is good to go!
Under which version? |
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. |
Fix for issue #4637.
Transform extensions hardcoded in babel-core 6. Pull request make
moduleFileExtensions
option to be passed to babel-core as `altExts'.