testing

v0.1.0curated

Testing conventions — colocated tests, no .only/.skip committed, descriptive names.

concern:testinglanguage:typescriptlanguage:javascript
archgate adr import packs/testing

Decisions (3)

Colocated Test Files

When test files live in a separate `__tests__/` or `tests/` directory tree, navigating between source and test becomes cumbersome.

1 rule
No .only() or .skip() in Committed Tests

Test runners like Vitest, Jest, and Mocha support `.only()` to run a single test and `.skip()` to disable tests.

1 rule
Descriptive Test Names

Test names serve as living documentation. When a test fails, its name is the first thing a developer reads.

1 rule