🧪Jest
Also known as Jest JS, jest testing
A test tool for JavaScript. It finds your tests and runs them.
Think of it like
Think of it like a full test kit in one box. Everything you need is inside.
Example
Emma adds Jest to her React app. She types npx jest, and it runs her 85 tests in 6 seconds.
Why it matters
Definition
Example code
console
$ npx jest
Tests: 1 passed, 1 totalCommon mistake
Key takeaways
- 1For JavaScript. And TypeScript.
- 2All in one. Runner, mocks, snapshots.
- 3Little set-up. Works out of the box.