To replicate the bug:

  1. Run yarn install
  2. Run yarn start
  3. Run yarn test -w
  4. Edit src/index.js
  5. You can notice that ava runs twice