We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think I setup something wrong. I created the project using Vite and using this template.
async
jest
Tests should run fine.
This error. ReferenceError: regeneratorRuntime
I tried to use babel and add configuration file and tried to install regenerator-runtime. They do nothing.
regenerator-runtime
Edit 1: I need to import regenerator-runtime manually. Actually, I expect that it should work without manual import.
The text was updated successfully, but these errors were encountered:
If folks are looking for a solution to this I added this to my setupTests.js file for Jest to make it go.
setupTests.js
// setupTests.js import 'regenerator-runtime/runtime'
Sorry, something went wrong.
No branches or pull requests
I think I setup something wrong. I created the project using Vite and using this template.
Steps to reproduce
async
testjest
commandExpected Behavior
Tests should run fine.
Actual Behavior
This error. ReferenceError: regeneratorRuntime
Note
I tried to use babel and add configuration file and tried to install
regenerator-runtime
. They do nothing.Edit 1: I need to import
regenerator-runtime
manually. Actually, I expect that it should work without manual import.The text was updated successfully, but these errors were encountered: