Skip to content
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

Best way to unit test an interceptor? #34

Open
Rhavoreth opened this issue Feb 28, 2019 · 1 comment
Open

Best way to unit test an interceptor? #34

Rhavoreth opened this issue Feb 28, 2019 · 1 comment

Comments

@Rhavoreth
Copy link

Hey, I was wondering if there are any recommended ways to unit test fetch interceptors. I have tried using fetch-mock to mock a http request however that package doesn't allow the fetch request to hit the interceptor.

Does anyone have any experience testing fetch interceptors, specifically using mocha tests

Thanks!

@sieira
Copy link

sieira commented Dec 27, 2019

Did you find a good way to do it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants