Open cjmling opened 6 months ago
use expect.any(Object)
expect.any(Object)
Example:
expect(mockedNavigate).not.toHaveBeenCalledWith("Question", expect.any(Object));
jest toHaveBeenCalledWith partial
use
expect.any(Object)
Example:
expect(mockedNavigate).not.toHaveBeenCalledWith("Question", expect.any(Object));
jest toHaveBeenCalledWith partial