Skip to content

Jest Learning Resources

This page curates the most useful official documentation and tools to continue learning beyond this course, organized by topic so you can find exactly what you need.

Official Jest Documentation

The official Jest documentation is thorough, actively maintained, and the most reliable source of truth for exact API behavior, especially as new versions ship. Bookmark the core pages below rather than relying purely on memory or older blog posts.

Jest Docs: https://jestjs.io/docs/getting-started
Expect API: https://jestjs.io/docs/expect
Mock Functions: https://jestjs.io/docs/mock-functions
Configuration: https://jestjs.io/docs/configuration

These four pages alone cover the majority of what you'll reference day-to-day.

Related Tooling Documentation

Testing Library: https://testing-library.com/docs/
Supertest: https://github.com/ladjs/supertest
ts-jest: https://kulshekhar.github.io/ts-jest/
Vue Test Utils: https://test-utils.vuejs.org/
  • Testing Library's docs cover query priority, best practices, and framework-specific guides (React, Vue, Angular).
  • Supertest's README covers the full request-chaining API used for Express/Node API testing.
  • ts-jest's docs cover TypeScript-specific configuration and troubleshooting.
  • Vue Test Utils covers mount(), shallowMount(), and Vue-specific testing patterns in depth.

Curated Resources by Topic

Jump directly to the right resource for what you're working on.

Topic Resource
Getting started jestjs.io/docs/getting-started
All matchers jestjs.io/docs/expect
Mock functions jestjs.io/docs/mock-functions
Configuration options jestjs.io/docs/configuration
React component testing testing-library.com/docs/react-testing-library/intro
Vue component testing test-utils.vuejs.org
Express/API testing github.com/ladjs/supertest
TypeScript setup kulshekhar.github.io/ts-jest
Community matchers github.com/jest-community/jest-extended
Lint rules for tests github.com/jest-community/eslint-plugin-jest

Community Tools Worth Knowing About

Beyond Jest's core, a few community projects extend it in useful ways: jest-extended adds many additional matchers, eslint-plugin-jest catches common mistakes automatically, and jest-mock-extended helps with strongly-typed mocks in TypeScript projects.

  • jest-extended — additional matchers beyond Jest's built-in set.
  • eslint-plugin-jest — lint rules specifically for test files.
  • jest-mock-extended — strongly-typed mocking helpers for TypeScript.
  • msw (Mock Service Worker) — network-level API mocking, usable in both tests and development.

Staying Current with Jest Releases

Jest evolves steadily; checking release notes on its GitHub repository periodically helps you learn about new matchers, performance improvements, and occasionally breaking changes (like the testEnvironment default change in Jest 28) before they surprise you in a routine dependency upgrade.

Common Mistakes

  • Relying on outdated blog posts instead of checking current official documentation for API changes.
  • Not knowing community tools like jest-extended or eslint-plugin-jest exist before reinventing their functionality.
  • Skipping release notes and being surprised by defaults changing between major Jest versions.
  • Only reading documentation reactively when something breaks, instead of periodically browsing for new features.

Key Takeaways

  • Official Jest documentation is the most reliable reference for exact, current API behavior.
  • Testing Library, Supertest, and ts-jest each have their own focused documentation worth bookmarking.
  • Community tools like jest-extended and eslint-plugin-jest extend Jest usefully without reinventing it yourself.
  • Periodically checking release notes helps you stay ahead of breaking changes and new features.

Pro Tip

Subscribe to or periodically check the Jest GitHub repository's releases page. Reading changelogs takes a few minutes and consistently surfaces small improvements you'd otherwise never discover.

Quick Links