# testing-node-ts > Write and validate Node/TypeScript tests (unit/integration/e2e) - Author: Saikus08 - Repository: Saikus08/opencode-workbench - Version: 20260126014739 - Stars: 8 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/Saikus08/opencode-workbench - Web: https://mule.run/skillshub/@@Saikus08/opencode-workbench~testing-node-ts:20260126014739 --- --- name: testing-node-ts description: Write and validate Node/TypeScript tests (unit/integration/e2e) --- # Testing Node/TS ## Process 1. Identify the behavior change (expected inputs/outputs). 2. Choose the right level: unit vs integration vs e2e. 3. Add edge cases and regression coverage. 4. Run `npm test` and fix failures. ## Notes - Prefer deterministic tests. - Avoid mocking internals unless necessary.