Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews check test code against universal rules to catch over-mocking, duplication, and framework-verifying tests before merge.
32% 82%+50 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Concrete applications of the nine rules for JS/TS projects. Read this when reviewing or writing Jest or Vitest tests.
Justified mock targets:
msw (Mock Service Worker) over jest.mock-ing your own fetch wrapper — it mocks at the true boundaryopenai, @anthropic-ai/sdk, Stripe, etc.)vi.useFakeTimers() / jest.useFakeTimers(), seeded RNGUnjustified mocks:
jest.mock('../utils/helpers') — mocking your own internal module to isolate a "unit" (Rule 2)// Violation: three near-identical it() blocks
// Fix:
test.each([
['Hello World', 'hello-world'],
[' padded ', 'padded'],
['Café Menu', 'cafe-menu'],
])('slugify(%s) → %s', (raw, expected) => {
expect(slugify(raw)).toBe(expected);
});
Snapshot tests are implementation tests in disguise unless the snapshot is the contract (e.g., a public JSON output, a CLI's help text). Avoid snapshots of:
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.