-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
have fetch pluggable #132
Comments
If you know of a way that works without breaking all current environments (client, server, Node.js, Deno, etc.) feel free to open a PR |
Thanks for your understanding, let me see if I can cook something up. |
btw: I would prefer to not add additional complexity, since you can also pass your custom request function here: https://github.com/i18next/i18next-http-backend?tab=readme-ov-file#backend-options |
I made a PR |
To answer your question about Sure we can use
|
Hi, Can you expose the "fetch" as pluggable, this would help greatly at testing especially as we dont use jest mocks (we use
it.concurrent
extensively will be an issue since jest mocks are global to test file)hence the need to make it pluggable per
it
testExample (just spitballing):
for mocking (integration tests)
The text was updated successfully, but these errors were encountered: