Jest
- It’s a JavaScript Testing Framework.
- It works with: TypeScript, React, Node, etc.
- It contains functionality of Test Runner
Links
Examples
- Test of async method in Jest
- The problem with mutation of object data in Jest
- Using “table” in method it.each of Jest
- Debugging in Jest
- Don’t use arrow function inside mockImplementation with this (Jest)
- Name your mocked function with word “mock”
- Test asynchronous code using Jest
Terminology
- mock (jest.fn)
- is actually Stub
- has some behavior of Spy (in testing)