This repository was archived by the owner on Jun 8, 2022. It is now read-only.
This repository was archived by the owner on Jun 8, 2022. It is now read-only.
Error while working with Jest and Cypress #99
Open
Description
Our team decided to use Jest and Cypress together to display our application’s test coverage and collect all tests in one place.
However, when we run the tests, we get the error:
The following error originated from your test code, not from Cypress.
> Do not import @jest/globals outside of the Jest test environment
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
Can you please tell us how to solve this problem, we are really stuck on this error
I also attach a screenshot of the error:
https://i.stack.imgur.com/MuqLJ.png
Thanks a lot in advance for your help.
Metadata
Metadata
Assignees
Labels
No labels