You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Attempting to use this lib with a version of Jest >= 21 will give you something similar to the error below if any test that uses these matchers fails:
FAIL test/reducers/appReducer.test.js
● app reducer › should return the initial state
TypeError: message is not a function
at getMessage (node_modules/expect/build/index.js:106:16)
at Object.throwingMatcher [as toEqualImmutable] (node_modules/expect/build/index.js:216:23)
at Object.<anonymous> (test/reducers/appReducer.test.js:9:3)
The text was updated successfully, but these errors were encountered:
jamesmoss
changed the title
No longer works with Jest 20+
No longer works with Jest 21+
Oct 19, 2017
Jest recently made a change that requires all matchers to return a function that returns a message string rather than a string itself.
jestjs/jest#3921
Attempting to use this lib with a version of Jest >= 21 will give you something similar to the error below if any test that uses these matchers fails:
The text was updated successfully, but these errors were encountered: