Skip to content
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
@Algoritm211

Description

@Algoritm211

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions