Node.js Basics and Testing
In this module you will learn:
Node.js Basics:
- Node.js vs JavaScript
- Node.js CLI (usage, options, environment variables)
- Node.js Modules (standart syntax, ES6 syntax)
- NPM (package structure, CLI commands, NPM scripts, devDeps vs deps, semantic versioning, package-lock)
- Node.js API (fs, streams, path)
Types of testing:
- Unit testing
- Integration testing
- End-to-End testing
Testing concepts
- Testing pyramid
- FIRST (fast, independent/isolated, repeatable, self-validating, timely) + maintainable, properly targeted
- TDD (test-driven development)
- Code coverage
Writing tests:
- Testing tools (jest)
- AAA pattern (arrange, act, assert)
- Mocking
Approximate time to complete this module:
Node.js
- Theory: 3 hours
- Additional materials: 10+ hours
Testing
- Theory: 2 hours
Theory
Node.js
Testing
Additional materials
Node.js