[docs, babel-jest] Getting started: "regenerator-runtime is not explicitly required"
See original GitHub issueThe example commands to install babel-jest
(in “Additional Configuration > Using Babel”) all include installing the regenerator-runtime
package.
Then, there is a note that reads:
Note: Explicitly installing regenerator-runtime is not needed if you use npm 3 or 4 or Yarn
Does this mean regenerator-runtime
is required on npm@<3||>4
, or this documentation outdated?
If this is the case, maybe we should not include installing regenerator-runtime
in the yarn add
example, and change the note to mandate installing regenerator-runtime
for the minority still using npm version 1.x or 2.x?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Error in Async Example: ReferenceError: regeneratorRuntime ...
I'm getting following error when trying to run an example from this directory: ... babel.config') module.exports = require('babel-jest').
Read more >`regeneratorRuntime` is not defined when running Jest test
It's a much better answer in 2020. Doesn't involve adding another dependency. Has been supported since node 10, so no need for Babel....
Read more >Getting Started - Jest
Note: Jest documentation uses yarn commands, but npm will also work. ... Note: Explicitly installing regenerator-runtime is not needed if you use npm...
Read more >babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >Getting Started · Jest - GitHub Pages
npm install --save-dev babel-jest regenerator-runtime. Note: Explicitly installing regenerator-runtime is not needed if you use npm 3 or 4 or Yarn.
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
Yep, this is no longer relevant. Thanks for the offer, though! #7595 removed it from Jest
The documentation related to
regenerator-runtime
was removed in #7016. Most probably this is not an issue any more.