Skip to content
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
Algoritm211 opened this issue Sep 30, 2021 · 0 comments
Open

Error while working with Jest and Cypress #99

Algoritm211 opened this issue Sep 30, 2021 · 0 comments

Comments

@Algoritm211
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant