In this lesson is introduction to auto testing in javascript. Using Jest Jest is a delightful JavaScript Testing Framework with a focus on simplicity
- Setting up the testing environment
- Implement unit tests for lib.js functions according to Test Development Driven (TDD) concepts
- Implement functions from libs.js
- Understand basic concepts of Test Development (TDD) in JavaScript
- Setting up the testing environment
- Build and run them
- Code coverage must be mote than 90%
Install npm packages
npm install
Run unit tests
npm run test
├── stt-pz-1
│ ├── js
│ │ ├── lib.js
│ │ ├── lib.spec.js
│ ├── .editorconfig
│ ├── .gitignore
│ ├── jest.config.js
│ ├── package.json
│ ├── package-lock.json
│ ├── README.md
└──
- Introduction to Test Driven Development in JavaScript.
- Автоматические тесты при помощи chai и mocha.
- Автоматическое тестирование с помощью Mocha JS.
- Что такое TDD и BDD на пальцах, и что должен знать о них фронтендер
- 5 Tips for Writing Great Javascript Unit Tests
- What is Test-Driven Development (TDD)?
- Unit Testing Best Practices