Closed juanjo-ramos closed 6 years ago
Hello Juanjo, i see you're using jest 20.0, but jest-mock package which internally used by jest-create-mock-instance available only from jest 21.0. You can either upgrade your jest to v21 or v22 or install jest-mock
package.
Just checked and jest-mock available in jest 20. The error comes from export interop then. I'll check
Does the import { createMockInstance } from "jest-create-mock-instance"
work ?
I'm trying to use this module in my environment, however I'm getting the following runtime error when running my tests:
I'm not using TypeScript but flow and flow-type. No complaints from flow though.
This is how
devDependencies
object looks like in mypackage.json
What can be causing the problem?