← Virtual projects
Node.js required
Free
Review to certify
Add Tests to Your Code (Node.js)
Write real unit tests with Node’s built-in test runner — prove your logic works.
Unit testing
Jest / test runners
Mocks & assertions
TDD intro
Refactoring confidence
Shipping features without tests is risky. Learn the minimum hiring teams expect.
Starter: /assets/templates/js-testing-lab/ (pure functions + node:test)
You will:
1) Implement status helpers for a job tracker / Kanban
2) Write failing tests first (or at least solid tests)
3) Run npm test and fix until green
4) Add 1 edge-case test (empty input, invalid status, etc.)
Submit: repo or pasted test output + reflection (120+ chars).
Environment setup (start here)
1) Node.js LTS (v18+) 2) Folder C:\Users\YourName\js-testing-lab with starter files 3) PowerShell: cd folder → npm install (may be empty) → npm test 4) Green output = passing tests.
1) Node 18+ → cd ~/Documents/js-testing-lab → npm test
How do I know it worked?
Common issues
Starter pack
Sign in to complete steps and earn an e-certificate.
Log in