Skip to content

createJsonQuery created queries is not mockable via msw #534

Description

@dovranJorayev

Description

query created by createQuery + fetch works fine (it mocked good)
But query created by createJsonQuery does not mocked for some reason.

// 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 that can be connected to codesandbox.io dev container

Links

Git reproduce
Telegram effector group message

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions