Skip to content

❗ Error in TestsΒ #2

Description

@mjesusdev

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions