بنقرة واحدة
flaky-test
Diagnose and fix flaky tests. Use when a test passes sometimes and fails other times.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Diagnose and fix flaky tests. Use when a test passes sometimes and fails other times.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate a mock API server from OpenAPI specs, TypeScript interfaces, or endpoint descriptions for frontend development and testing. Use when the user asks to create a mock server, fake API, or stub endpoints.
Map and visualize module dependencies, detect circular imports, and identify coupling hotspots. Use when the user asks to analyze dependencies, find circular imports, or understand module relationships.
Generate typed error classes, error handling middleware, and HTTP error mapping following project conventions. Use when the user asks to set up error handling, create error classes, or implement error middleware.
Create, manage, and clean up feature flags for gradual rollouts and safe deployments. Use when the user asks to add a feature flag, toggle, or manage feature gating.
Generate docker-compose.yml files for local development with application services, databases, caches, and queues. Use when the user asks to set up a local dev environment or create docker-compose configuration.
Generate OpenSearch Dashboards (Kibana) saved objects — index patterns, visualizations, and dashboards as JSON. Use when the user asks to create dashboards, charts, or visualizations for OpenSearch/Elasticsearch/Kibana.
| name | flaky-test |
| description | Diagnose and fix flaky tests. Use when a test passes sometimes and fails other times. |
When a test is flaky — passes intermittently, fails on CI but not locally, or depends on timing/order.
{{CONFIG.testing.testCommand}} -- --testPathPattern={file} --runInBandCommon causes:
setTimeout/setInterval; race conditionsDate.now(), Math.random(), uuid without seedawait for all async operationswaitFor or act for React updatessetTimeout with fake timers: jest.useFakeTimers()beforeEach: jest.clearAllMocks() or mockReset()beforeEach to create fresh fixtures; avoid module-level state--runInBand to isolate; fix root cause rather than rely on itDate.now(), Math.random(), or ID generatorsjest.setSystemTime() for date-dependent testsbeforeEach for setup; avoid afterAll that affects later testsfor i in {1..20}; do {{CONFIG.testing.testCommand}} -- --testPathPattern={file}; donesleep)