question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docs, babel-jest] Getting started: "regenerator-runtime is not explicitly required"

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SimenBcommented, Feb 22, 2022

Yep, this is no longer relevant. Thanks for the offer, though! #7595 removed it from Jest

1reaction
mrazauskascommented, Feb 22, 2022

The documentation related to regenerator-runtime was removed in #7016. Most probably this is not an issue any more.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found