Port an eleven-test pytest suite as plain functions and run it with node --test, and the report says tests 1, pass 1. Node’s runner doesn’t do everything pytest does for you, and a run can succeed without checking anything.
In this course, you’ll port the pytest suite for a ski-hire shop’s fitting module. This is the Fast Track version, for learners with more Python experience: it covers the same ground as the standard course, faster, in shorter lessons.
By the end of this course, you’ll be able to:
- Write test files that
node --testfinds, and compare values withnode:assert/strict - Check errors with
assert.throws(), and run one test over many cases - Share setup with
beforeEach(), and test async code withassert.rejects() - Replace a collaborator with
t.mock - Port the shop’s whole pytest suite to JavaScript
You’ll need pytest with pytest.raises(), parametrize, fixtures, async tests, and monkeypatch, plus Node 26 and JavaScript modules, classes, error classes, and await. The Python examples use Python 3.15 with pytest and pytest-asyncio.
The course mixes short videos and text lessons with exercises, a project, and a quiz.
What’s Included:
- 17 Lessons
- Video Subtitles and Full Transcripts
- Translated Subtitles in 8 Languages
- 2 Downloadable Resources
- Interactive Quiz to Check Your Progress
- 5 Hands-On Coding Exercises
- Q&A With JavaScript Experts: Ask a Question
- Certificate of Completion
Downloadable Resources:
Related Learning Paths: