Ultimate

X_TEST_EXPECTED_INPUT_INVALID

Means

an assertion named an input its primitive's schema rejects

Typical cause

toHaveBeenCalledWith or toHaveEnqueued parses the expected input through the primitive's own input schema, and it did not parse — no call could ever have matched it

Fix

expect(stubbed).toHaveBeenCalledWith(<input the schema accepts>) — the issues are in the cause

Listed under Testing

This page as markdown