mjesusdev/Course_React_Code

โ— Error in Tests

mjesusdev opened this issue ยท 0 comments

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.