Remix - Testing
In a unit test for an action, this code snippet is used:
What will
const request = new Request('http://localhost', {
method: 'POST',
body: new URLSearchParams({ name: 'Alice' })
});
const response = await action({ request });
const data = await response.json();What will
data contain if the action returns json({ success: true })?