Bug: updating from 20.0.4 to 20.0.6 fails tests w/ "babelHelpers is not defined"
See original GitHub issueUpgrading ts-jest
from 20.0.4
to 20.0.6
ends up failing the compilation with “babelHelpers is not defined”.
Links:
- Pull request demonstrating the issue: https://github.com/funfix/funfix/pull/8
- Travis build that failed: https://travis-ci.org/funfix/funfix/builds/244174627
What happens is this:
FAIL test/core/either.test.ts
● Test suite failed to run
ReferenceError: babelHelpers is not defined
at src/core/errors.ts:24:37
at Object.<anonymous> (src/core/errors.ts:47:114)
at Object.<anonymous> (src/core/index.ts:25:10)
at Object.<anonymous> (src/funfix.ts:24:10)
at Object.<anonymous> (test/core/either.test.ts:20:16)
at handle (node_modules/worker-farm/lib/child/index.js:41:8)
at process.<anonymous> (node_modules/worker-farm/lib/child/index.js:47:3)
at emitTwo (events.js:106:13)
at process.emit (events.js:194:7)
at process.nextTick (internal/child_process.js:766:12)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)
That error usually happens when Babel is configured to generate code with externalHelpers: true
, which are then missing.
If this error happens due to Jest itself or to Babel, let me know so I can report it where it needs to be reported, however I upgraded those independently and the only upgrade that breaks my tests is ts-jest
.
Thanks,
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Webpack Uncaught ReferenceError: babelHelpers is not defined
im developing a react application. For Routing i use react-router-dom and typesafe-react-router. My project is setup with webpack 4 and babel.
Read more >How to fix update problems (Ubuntu 20.04) - apt
The problem here is that when you upgrade ubuntu from 18.04 to 20.04 the system did not replace every instance of bionic with...
Read more >Webpack Uncaught ReferenceError: babelHelpers is not ...
Coding example for the question Webpack Uncaught ReferenceError: babelHelpers is not defined-babel.js.
Read more >Download Diff File - My Git Repositories!
acorn/bin/acorn \ No newline at end of file diff --git ... If you want to test that a specific error is thrown inside...
Read more >ts-jest - バグ:20.0.4から20.0.6に更新すると、「babelHelpersが ...
FAIL test /core/either.test.ts ○ Test suite failed to run ReferenceError: babelHelpers is not defined at src/core/errors.ts:24:37 at Object.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I’ve added these configuration lines and it now seems to work:
Add an
ignoreBabelRC
flag?