# Tests that catch real bugs

> Writes tests that check real behaviour, not implementation details, so they catch bugs and survive refactors.

- Page: https://youraiskill.com/skill/dzhng-write-tests
- What it does: Write tests that pin real behavior instead of implementation details, config values, or lucky samples. Use when adding tests for new behavior, writing a regression test, fixing a brittle or flaky test, reviewing a test diff, or when a test breaks after a refactor or config change that didn't change behavior.
- Niches: testing, coding
- Licence: MIT
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (1 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
