You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our project contains a mix of front-end (React) and generic (business logic) code, so we let Jest use its default nodeenvironment then configure individual test cases to use JSDom via @jest-environment jsdom docblocks. This is faster than initializing JSDom everywhere.
In a brief experiment with jest-light-runner, I saw that these tests are failing. I assume that, because jest-light-runner doesn't use vm to isolate tests, it doesn't support @jest-environment docblocks and must run every test in the same environment?
Thank you.
The text was updated successfully, but these errors were encountered:
I'm guessing that this falls under "Unsupported Jest features", but I want to confirm:
Our project contains a mix of front-end (React) and generic (business logic) code, so we let Jest use its default
node
environment then configure individual test cases to use JSDom via@jest-environment jsdom
docblocks. This is faster than initializing JSDom everywhere.In a brief experiment with jest-light-runner, I saw that these tests are failing. I assume that, because jest-light-runner doesn't use vm to isolate tests, it doesn't support
@jest-environment
docblocks and must run every test in the same environment?Thank you.
The text was updated successfully, but these errors were encountered: