mocha-to-jest-migration

Installation
SKILL.md

Mocha to Jest migration

Use this skill when

  • The suite still uses Mocha, Chai, or Sinon and needs a staged migration to Jest.
  • You find describe/it tests using Chai assertions or Sinon stubs that need Jest equivalents.
  • The work includes runner config, setup files, fake timers, spies, or snapshots.

Do not use this skill when

  • The test suite already uses Jest — the task is not a migration.
  • The ask is to add new tests to an existing Mocha suite without converting it.

Inputs to gather

Required before editing

  • The existing Mocha, Chai, and Sinon versions and test bootstrap configuration.
  • The repository's current or planned Jest configuration and conventions.
Installs
5
GitHub Stars
4
First Seen
Sep 1, 2026