Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reviews generated or changed tests against universal rules before they ship, covering pytest, PHPUnit/Pest, and Jest/Vitest.
87% 100%+13 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 20 of 23 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)expect.anything() / expect.any(Object) inside toHaveBeenCalledWith(...), or a bare toHaveBeenCalled() on a boundary call whose arguments are the behavior — assert the real values (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.