Question 10 of 10Pro Only

A test that was passing is now failing intermittently. How would you debug this flaky test?

Sample answer preview

## What Makes a Test Flaky? A flaky test is one that **sometimes passes and sometimes fails** without code changes. Common causes: 1. **Race conditions** - Async timing issues 2. **Shared state** - Tests affecting each other 3.

flaky testsrace conditionsdebuggingwaitFortest isolationCI/CD

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Full-Stack Developer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime