Created by: Kjir
This PR continues the work started in #1754 so that it might be merged.
I rebased the changes on top of master (which should fix the test errors, hopefully) and I created the helper in react-dev-utils
as suggested in the previous code review.
I tested that it still works with a very simple python program:
import time
time.sleep(10)
After 10 seconds the program does actually quit, both when watching test and when running the dev server.
I am not sure there is a suitable way of adding a test for this, if I receive some suggestions about this I will gladly implement them!
Fixes #1753 (closed)