We’ve added eight new JavaScript and TypeScript rules to help teams write more reliable, maintainable tests and modernize utility-library usage.
New rules:
-
S8907: Replace Lodash/underscore.js methods with native APIs
-
S2925: No fixed waits in tests
-
S8785: Test suite callbacks should be synchronous functions
-
S8784: Assertions should be placed inside test cases or hooks
-
S8927: Default imports from modular utility libraries should not be used
-
S5976: Similar tests should be grouped in a single Parameterized test
-
S8959: UI test debug commands should not be used
-
S8967: Inline snapshots should not contain interpolations
We’d love to hear which JavaScript and TypeScript testing patterns you’d like us to cover next.