Jest 30 rules for JavaScript and TypeScript tests: mocks and spies, async tests, fake timers, matchers, module mocking including ESM, snapshots, configuration and CI. Baseline: jest ^30.5.2. Use this skill whenever the project runs Jest (jest in package.json or a jest.config file) and the user writes, fixes, reviews…
Patterns for testing Zod schemas with Jest or Vitest: valid and invalid cases, asserting issues and error paths, mock data from zod-schema-faker, property-based tests with fast-check, JSON Schema snapshots, and schemas inside API handlers and forms. Baseline: zod ^4.6.0. Use this skill whenever the user writes or…
Patterns for testing Redux Sagas in Jest or Vitest: redux-saga-test-plan with expectSaga (integration) and testSaga (unit), runSaga, and stepping a generator by hand; providers, partial matchers, reducer integration, error and cancellation paths. Use this skill whenever the user writes or fixes a test for a saga, even…