It can be a Jest configuration issue. I solved forcing “node” as jest environment in package.json:
“jest”: {
“testEnvironment”: “node”
}
see docs: https://facebook.github.io/jest/docs/configuration.html#testenvironment-string
It can be a Jest configuration issue. I solved forcing “node” as jest environment in package.json:
“jest”: {
“testEnvironment”: “node”
}
see docs: https://facebook.github.io/jest/docs/configuration.html#testenvironment-string