โ Error in Tests
mjesusdev opened this issue ยท 0 comments
mjesusdev commented
With test "notes.test.js" have a error ๐
'FIRESTORE INTERNAL ASSERTION FAILED: Unexpected state' when unit testing with Jest'
Possible Solution: Add this code to "package.json"
"jest": {
"testEnvironment": "./test-utils/custom-jest-environment.js"
}
And create new file "jest.config.js" with the content ๐๐
module.exports = { testEnvironment: 'node' }
- Too import the package, but not this full solution.