dimanche 10 février 2019

TypeError: Object.defineProperty called on non-object at Function.defineProperty (

I am trying to integrate jest into my node.js project, initially the tests were written in jasmine I use jest-codemods to convert the jasmine tests into jest !

But, when I run the tests npm test I get these weird errors.

I get this error saying : TypeError: Object.defineProperty called on non-object at Function.defineProperty (<anonymous>)

Screenshot of the error

What does it exactly mean ? I searched a lot on the net, couldn't find any satisfying explanation anywhere!

Plus it's strange why it's showing me an error in the part of the code which has comments!

Aucun commentaire:

Enregistrer un commentaire