What problem does it solve?
Jest tests that pass in a full suite but fail when run alone hide order dependencies and shared mutable state, masking real bugs in the test suite. This Skill detects those hidden dependencies by running every test twice and comparing results.
Core Features & Use Cases
- Dual-mode execution: Runs the full spec file once, then re-runs each
it(...)/test(...) individually with --testNamePattern from the correct package root.
- Classified diagnosis: Labels each test as OK, ORDER DEPENDENCY, FALSE POSITIVE, or BROKEN, with likely causes such as missing
beforeEach resets or polluted shared mocks.
- Use Case: After editing
packages/fxa-auth-server/lib/account.spec.ts, invoke the Skill to confirm all 12 tests pass both together and in isolation before committing.
Quick Start
Ask the assistant to validate test independence for a given spec file, for example: run fxa-test-independence on packages/fxa-auth-server/lib/metricsCache.spec.ts.