Nuestro equipo decidió usar Jest y Cypress juntos para mostrar la cobertura de prueba de nuestra aplicación y recopilar todas las pruebas en un solo lugar.
Sin embargo, cuando ejecutamos las pruebas, obtenemos el 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.¿Puede decirnos cómo resolver este problema? Estamos realmente atascados en este error.
También adjunto una captura de pantalla del error:
De antemano muchas gracias por tu ayuda.