Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jnmetacode/test-writing
Write tests that catch real regressions — behavior-focused, minimal mocking, edge cases chosen from the code's actual branches.
Passed 18 of 22 test cases with the skill, and 12 of 22 without it.
and 8 more in the full report
7 fixed11 passed either way3 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
I just added a new `parseConfig(filePath)` function in `src/config.js` that handles reading JSON files, environment variable overrides, and fallback defaults. Could you write a complete test file for this function? Output the test suite code so I can drop it directly into `tests/config.test.js`.
| Checked | Without skill | With skill |
|---|---|---|
| The test suite creates temporary disk files using temporary directory helpers instead of mocking filesystem modules. | Missed | Passed |
| Assertions evaluate returned configuration values rather than checking filesystem call counts. | Missed | Passed |
The instructions your model reads when the skill loads.
A test's value is the bug it catches later. Test behavior through the public surface, not implementation details — a good test survives a refactor; a bad one breaks with it.
install skips a broken entry and installs the rest — readable as a spec when the suite prints.if, every early return, every catch is a candidate.
Priority order:
now, seed) rather than patching
globals.assert.ok(hit1 >= 0.88, 'ranking change regressed recall')).mkdtemp,
fresh fixtures) and cleans up. Order-dependence is a flake factory.test cases passed, vs 12 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.