Skip to content

Supported Test Runners

test-staged automatically detects which runner you are using based on your package.json dependencies and configuration files.

RunnerSupport LevelMethod
Vitest⭐️ FullNative vitest related
Jest⭐️ FullNative jest --findRelatedTests
Mocha✅ BasicFile pattern matching
Ava✅ BasicFile pattern matching

Detection Logic

  1. Checks package.json dependencies.
  2. Checks for configuration files (e.g., vitest.config.ts, jest.config.js).
  3. Defaults to file pattern matching if no native "related" mode is available.

Released under the MIT License.