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
New rule to disallow using mock API in end-to-end test files #1256
Comments
I think a rule disallowing using module mocking makes sense. Would you also want fake time, |
Let’s think.
Disallowing fake time sounds tricky. I think there should be an option allowing to ban everything except faking time. Testing server side APIs or web apps might depend on fake time in the end-to-end tests. In general it sounds good to have this configuration option. |
Sounds like you want to ban usage of |
Also |
It sounds like we should do a |
Yep. That sounds right. Actually my first idea was to suggest adding |
What about adding a rule which would disallows using mock APIs? I though it could be activated for a directory where end-to-end tests live and could ensure that test fixtures are used instead of mocks.
Usually I prefer to leave mocks and spies for unit tests and to avoid them in end-to-end tests. Just wanted to check what people smarter than me think? (;
The text was updated successfully, but these errors were encountered: