Description
In this course, you will learn :
- From basic unit tests with Jest to automated integration tests with Selenium, test your React applications.
- Everything from the basics to the most advanced concepts, giving you the confidence to ship your software to customers.
Syllabus :
1. Introduction
- Introduction to Testing
- Significance of Testing
- Project Setup for Jest
- Project Setup for Selenium
2. Write Your First Tests
- Your First Story
- TDD Lifecycle Revisited
- Solution to the Exercise
- Jest Cheatsheet
3. More Tests
- Testing the TaskList Component
- More on Integration Tests
- Testing "Complete Task" Feature
- Implementing "Complete Task" Feature
- Solution to Exercise
- Logic for Modifying Tasks
4. Mocking Modules in Unit Tests
- What is Mocking and Why do we Need it?
- Creating Mock Objects
- Mocking Arbitrary Imports
- Mocking Arbitrary Imports: Continued
- Solution to the Exercise
- Creating Reusable Mocks
- Creating Reusable Mocks: Continued
- Automocking