JavaScript
🛠️ Node.js, npm and testing
Run JavaScript outside the browser, manage dependencies with npm, and write tests with a TDD mindset.
What you'll learn
- Run JavaScript with Node.js and manage dependencies and scripts through
npmandpackage.json. - Organize your code into modules by exporting and importing with ES Modules and CommonJS.
- Write automated tests with assertions and apply the TDD cycle (red-green-refactor).
- Test asynchronous functions with
async/awaitand replace dependencies with mocks and spies.
Lessons
Node.js, npm and package.jsonRun JS on the server and manage dependencies. ModulesSplit your code into reusable files. Testing and TDDAutomated tests and test-driven development. Version control with GitSave the history of your code, branches, remotes and GitHub. Quality and bundlingLinters, formatters, bundlers and npm scripts. Asynchronous testing and test doubles (mocks)Test async functions and replace dependencies with mocks/spies.Practice this module in the app
DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.
Start free in the app →