What problem does it solve?
Test files in the Mozilla Accounts monorepo often accumulate violations of FXA testing guidelines such as shared mutable state, vague assertions, and over-mocking, which cause flaky or misleading tests. This Skill audits a test file against every rule and produces a prioritized repair plan without modifying any files.
Core Features & Use Cases
- Rule-by-Rule Audit: Checks the target test file against the shared FXA testing rules in
.claude/rules/testing/base.md, plus React component rules for *.test.tsx files.
- Prioritized Findings Table: Classifies each violation as High, Medium, or Low severity with location, rule reference, and before/after repair snippets.
- Scope Suggestion: Recommends a reasonable repair batch based on issue volume so diffs stay reviewable.
- Use Case: An engineer who just modified
account.spec.ts runs the Skill to get a repair plan flagging shared state across tests and weak toBeTruthy() assertions before opening a pull request.
Quick Start
Ask the assistant to review the test file at a given path, for example: run fxa-test-repair on packages/fxa-auth-server/test/account.spec.ts and show me the repair plan.