The Flaky Test Challenge

As an engineer, you will be expected to ensure that all new features and fixes do not cause regressions or headaches for active users. Tests are an important tool for keeping our apps usable and bug-free. However, tests are only useful if they are reliable. This challenge will test your ability to understand and fix a flaky test of a React app.

The Challenge

The test for this app sometimes passes and sometimes fails. You should be able to quickly figure out a change that will make the test 100% reliable.

You may modify any file or files except those in the src/ directory.

Instructions

You must follow these steps for your solution to be accepted

Forking this repo is an immediate disqualification

How to attempt this challenge:

  1. Create a new repo in your account and note the git url
  2. Clone this repo
  3. Solve the challenge
  4. Set your new repo as the origin: git remote set-url origin ${your repo url}
  5. Push your solution to your repo