flaky-test-detection
Installation
SKILL.md
Flaky Test Detection
Task → Which mode?
├─ Reviewing changed test files / PR diff for risk patterns → Review mode
├─ Fixing a known flaky Jest unit test → Review mode + local reproduce loop
└─ Auditing CI history to rank flaky tests by failure rate → open references/gh-analysis.md
Constraints
All proposed fixes must comply with mms-mobile-testing (unit path) and mms-coding-guidelines. Key rules:
- Use
jest.mocked(fn)— neverfn as jest.Mock - Use
toBeOnTheScreen()— nevertoBeTruthy()/toBeDefined()for element presence - Use
yarncommands — never npm or npx - No
toMatchSnapshot()— use explicit assertions ortoMatchInlineSnapshot()