← All tutorials
Skill Zuno · skillzunos.com · Fullstack Pro
Jest tutorial
Learn Jest on Skill Zuno. This Jest tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Jest problems on skillzunos.com.
Open Jest on Skill ZunoAlso see the Jest interview questions.
Jest is a popular JavaScript testing framework from Meta, used for React, Node.js and TypeScript projects. It bundles a test runner, assertions, mocking, snapshot testing and code coverage with little configuration. Jest interviews cover writing tests and matchers, mocking modules and timers, testing asynchronous code, snapshot testing, React Testing Library and configuration.
Jest topics covered
- Tests and matchers — test, describe and expect, with toBe, toEqual, toThrow and more.
- Mock functions — jest.fn and jest.spyOn, and checking calls and return values.
- Mocking modules — jest.mock for whole modules, manual mocks and resetting between tests.
- Asynchronous code and timers — async tests, resolves and rejects, and jest.useFakeTimers.
- Snapshot testing — When snapshots help, and keeping them small and meaningful.
- Testing React components — Rendering and querying with React Testing Library and user-event.
What you can learn
- Jest tutorial for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack Pro topics alongside Jest on skillzunos.com