effector / effector/farfetched
createJsonQuery created queries is not mockable via msw
- Dominant language
- TypeScript
- Stars
- 221
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
### Description
query created by createQuery + fetch works fine (it mocked good)
But query created by createJsonQuery does not mocked for some reason.
```ts
// Error due no handler assigned
Object {
"cause": [TypeError: fetch failed],
"errorType": "NETWORK",
"explanation": "Request was failed due to network problems",
"reason": "fetch failed",
}
```
### Notes
Due to shallow github code exploration internally both queries is use fetch with Request. So i suggest it can be issue with headers passed to queries
### Reproduce
Could not provide reproduce in stackblitz due to problems with msw integration, but here is [github repo](https://github.com/dovranJorayev/vitest-msw-farfetched-bug) that can be connected to codesandbox.io dev container
### Links
[Git reproduce](https://github.com/dovranJorayev/vitest-msw-farfetched-bug)
[Telegram effector group message](https://t.me/effector_ru/377610)
Contributor guide
Assessment
This issue has not been assessed yet.