Skip to content
Advertisement

Jest : ReferenceError: describe is not defined

I try to setup jest for my project following this tutorial : https://dev.to/nedsoft/testing-nodejs-express-api-with-jest-and-supertest-1km6

But when I try to run a basic test I’ve got the error below :

JavaScript

I try to remove in my package.json :

JavaScript

But nothing change.

A idea ?

Advertisement

Answer

Ok the problem is last version of jest has conflict with node 10.13.0

Source : https://github.com/facebook/jest/issues/9538

So make this and it is ok :

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement