jest: babel 7 with dynamic requires does not work
π Bug Report
When using Babel 7, Jest does not transform dynamic required files. Babel 6 works as expected.
This is a continuation of https://github.com/facebook/jest/issues/7021.
Link to repl or repo (highly encouraged)
Run npx envinfo --preset jest
Paste the results here:
System:
OS: macOS 10.14.1
CPU: (16) x64 Intel(R) Xeon(R) W-2140B CPU @ 3.20GHz
Binaries:
Node: 10.13.0 - ~/.nvm/versions/node/v10.13.0/bin/node
npm: 6.4.1 - ~/.nvm/versions/node/v10.13.0/bin/npm
npmPackages:
jest: 23.6.0 => 23.6.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (11 by maintainers)
You have to add an custom transformer to solve this Babel 7 issues⦠I have added a Pull request to your repository wich solves it
I just wanted to confirm that this issue has been fixed with
jest@24.0.0-alpha.12
. Thank you!!See #7574
@thymikee adding
babel-jest
did not solve the issue, but the pull request that @42tg submitted did.