Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove jest/no-conditional-in-test rule
I propose that we remove this rule. I would argue that adding logic to tests is not as harmful as the docs for this rule would indicate and in fact can be quite useful. - When mocking functions with overloads, it is necessary to add logic inside of the mock implementation to handle different arguments. - When testing a function that can be called multiple ways where the behavior is mostly the same between inputs aside from a few edge cases, using an `if` statement to highlight the difference can be useful.
- Loading branch information