I'm running into a weird problem. Mock Service Worker is not intercepting axios.post with a payload. Without the payload it works. For exmaple:
This works:
await axios.post(`${BASE_URL}/test.json`);
This does not work:
await axios.post(`${BASE_URL}/test.json`, { id: 1 });
by just adding { id: 1 } MSW does not intercepts the call.
Any idea?