How DNA is tested and how DNA-managed projects should approach quality.
pnpm test # Vitest — all packages
pnpm test:watch # Watch mode
pnpm typecheck # TypeScript across packages
pnpm lint # ESLintTests live alongside source: *.test.ts in each package.
DNA coordinates testing through Behaviour:
| File | Governs |
|---|---|
.DNA/behaviour/testing.behaviour.md |
Test requirements for AI |
dna validate |
Checks project against Behaviour rules |
SonarQube-style local reports without a SonarQube server:
dna quality report --featureReports written to .DNA/reports/quality/.
dna doctor
dna validate
pnpm test # if contributing to DNA monorepo