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
What happened (please provide anything you think will help):
Results in errors on every test:
FAIL src/__tests__/ncp-context.test.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
FAIL src/__tests__/access.test.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
FAIL src/__tests__/client.test.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
FAIL src/__tests__/clientOptions.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
FAIL src/__tests__/request-context.test.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
FAIL src/__tests__/request-context-trace.test.js
● Test suite failed to run
TypeError: Cannot redefine property: toBeAfter
at Function.defineProperty (<anonymous>)
at node_modules/jest-jasmine2/node_modules/expect/build/jestMatchersObject.js:103:14
at Array.forEach (<anonymous>)
at Object.<anonymous> (node_modules/jest-extended/dist/all/index.js:12:14)
The text was updated successfully, but these errors were encountered:
On more investigation, I think this may be collision between jest-extended, expect-more-jest and console-testing-library. The new jest and jasmine setup appears to not allow redefinition of expectations so now there are collisions.
Bug
package
version: 1.1.0node
version: 14.18.1npm
(oryarn
) version: 6.14.12jest
version: 27.2.5Relevant code or config
Use Jest v27 with Jasmine test runner configured in package.json:
What happened (please provide anything you think will help):
Results in errors on every test:
The text was updated successfully, but these errors were encountered: