matchers
1 trace
- Jest 30: toBeCalled / toBeCalledWith / toReturn / toThrowError aliases removed — use toHaveBeenCalled, toThrowAfter upgrading to Jest 30, tests that use expect(fn).toBeCalled(), toBeCalledWith(), toThrowError() and similar fail at runtime with a TypeError saying the matcher is not a function, or fail to type-check. Fix: Search…