Replies: 1 comment 1 reply
-
Instead of matching with const RemixStub = createRemixStub([
{
...,
action: async ({ request }) => {
const formData = await request.formData();
const obj = Object.fromEntries(formData);
fn(obj);
return null;
},
},
]);
expect(fn).toBeCalledWith({
name: null,
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
overview
^1.3.1
) and react-testing-library(^14.2.1
)problem
toHaveReturnedWith
always seems to returnundefined
.Beta Was this translation helpful? Give feedback.
All reactions