Open pedroresende opened 4 years ago
You should be able to solve this by adding this to the top of any test files that require document
:
/**
* @jest-environment jsdom
*/
This appears to be the same issue as #188
I had a simular issue and solved it by adding the testEnvironment
in my jest.config.js
like this:
module.exports = {
testEnvironment: "jsdom",
// ... other options
}
Hope it helps!
Had similar issue, solution here: https://github.com/shelfio/jest-mongodb/issues/211#issuecomment-878282691
Can anyone help here https://github.com/kulshekhar/ts-jest/issues/3913
I currently have the following dependencies in packages.json file
my jest.config.js has the following
each time I attempt to run the tests I get the following error