# Testing Standards

> Testing conventions - Jest framework, unit tests alongside the code they cover, integration tests in a separate test/ directory, and ephemeral agent tests removed when the work is done. Load when writing or modifying tests.

- Skill: `carlosferorduna/testing-standards` (Agent Skill)
- Install (CLI): `npx skillmds@latest add carlosferorduna/testing-standards`
- Raw SKILL.md: https://api.skillmd.com/api/skills/carlosferorduna/testing-standards/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: CarlosFerOrduna (https://skillmd.com/u/carlosferorduna)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/carlosferorduna/testing-standards

---


# Testing Standards

## Framework

- The testing framework is **Jest**.
- Do not assume the testing configuration; check `package.json` and the project
  README before introducing or modifying tests.

## Unit tests

- Unit tests live alongside the code they test:

```text
user.service.ts
user.service.spec.ts
```

## Integration tests

- Integration tests live in a separate `test/` directory.

## Ephemeral tests

- Agents may create temporary test files to validate a hypothesis.
- Ephemeral test files must be removed when the plan of work is complete.
- Do not leave temporary or debugging tests in the repository unless they are
  intentionally part of the final suite.

