In this lesson is next step to understand BDD 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 Calculator.ts according to Behavior Development Driven (BDD) concepts
- Implement tests for libs/Calculator.spec.js
- Understand basic concepts of Test Development (BDD)
- Understand difference between TDD vs BDD
- Understand how to use Jest spyOn
- Setting up the testing environment
- Build and run them
- Code coverage must be mote than 90%
Install npm packages
npm install
Start App
npm run dev
Run tests
npm run test