-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
Error when testing async generator #4936
Comments
Found a fix to this bug, but I believe it should be solved another way within The solution was to require Here is the commit of the solution |
Hey @crubier @thymikee 👋 |
Thank you @yaelhe! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This is a potential bug with jest / babel-jest
What is the current behavior?
Jest does not seem to support testing async generators.
Everything is explained on this repo I made for the occasion:
https://github.com/crubier/jest-bug
Setup
npm install
Problem
npm run test-no-jest
succeeds, it runs the test without any test framework, just using asserts.npm run test
fails because of the async generator but it should not.Error given by jest:
My Configuration
See package.json in my repo
The text was updated successfully, but these errors were encountered: