-
Notifications
You must be signed in to change notification settings - Fork 10
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
[question] How to disable Mock not found..
warnings ?
#10
Comments
Hi @frezot, sorry for taking so long to respond. When Mockievelli is enabled, and unmatched fetch or XHR request is replied with 404 and an warning is logged in the console. This is by design to prevent the application under test to hit the real API by mistake in case you forgot to mock some of the endpoints. Can you share your use case? Why you do not want to mock some of the enpoints? |
In case I am using this to test Angular application, we have many request to http://localhost:4200/sockjs-node/info?t=.... |
Hi, @lukaszfiszer. Here is a couple examples:
|
Is there any way to turn off this "Mock not found for request: type=xhr method=GET" error. It's making it very hard to write tests. I'm also working on an Angular project and currently the application won't render with all the 404's |
@lukaszfiszer maybe we can at least add an option to set what type of requests to intercept on setup
We are working on react app and get a bunch of mock not found for things like
if we could at least omit fetch and prevent those 404s, it would be helpful |
Or how to specify the endpoints which should not be mocked
The text was updated successfully, but these errors were encountered: