You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing requires creating mocks and using fixtures and sometimes uglier mutable code. This is fine (and sometimes preferred) for tests, but with our strict production ESLint configuration we need to use multiple eslint disable comments which is ugly.
We could turn off the problematic rules in the test config (only applied for tests files based on filename pattern).
The text was updated successfully, but these errors were encountered:
Siegrift
changed the title
Make less strict config for testing files
Make less strict ESLint config for testing files
Feb 27, 2024
Testing requires creating mocks and using fixtures and sometimes uglier mutable code. This is fine (and sometimes preferred) for tests, but with our strict production ESLint configuration we need to use multiple eslint disable comments which is ugly.
We could turn off the problematic rules in the test config (only applied for tests files based on filename pattern).
The text was updated successfully, but these errors were encountered: