name: testing-node-ts description: Write and validate Node/TypeScript tests (unit/integration/e2e)
Testing Node/TS
Process
- Identify the behavior change (expected inputs/outputs).
- Choose the right level: unit vs integration vs e2e.
- Add edge cases and regression coverage.
- Run
npm testand fix failures.
Notes
- Prefer deterministic tests.
- Avoid mocking internals unless necessary.