Slapdash
josh
Mock Service Worker
Mock Service Worker
Preferring
nock
instead because I can’t find a way to verify the request body that’s being sent:
Can’t be verified by request matching: that is only by path:
https://mswjs.io/docs/basics/request-matching
Can’t be verified by making an assertion against the request: that is discouraged, so if it’s even possible it will be indirect:
https://mswjs.io/docs/recipes/request-assertions