Closed eranelbaz closed 3 years ago
Seems like this usage of jest-when is broke on version 3.3.0, and work using 3.2.0
jest-when
const fn = jest.fn(); when(fn).calledWith(null).mockReturnValue('yay!'); expect(fn(null)).toBe('yay!');
the test is failing and i get this in the logs
TypeError: Cannot read property '_isAllArgsFunctionMatcher' of null
versions -
"jest-when": "^3.3.0", "jest": "26.6.3"
Thanks
https://github.com/timkindberg/jest-when/releases/tag/v3.3.1
Thanks for the bug report!!
Seems like this usage of
jest-when
is broke on version 3.3.0, and work using 3.2.0the test is failing and i get this in the logs
versions -
Thanks