This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Watch mode #33
Labels
Comments
This should mostly work out of the box today! Keeping the browser open requires global cleanup for Jest runners. I filed it as jestjs/jest#9795 and they seem open to it. |
It's a total hack but we implemented this behavior in qawolf by creating a Jest watch plugin. We use |
I use the following npm scripts to implement this behaviour with chokidar-cli: "test:e2e": "cd tests/e2e && folio --workers `grep -c ^processor /proc/cpuinfo` --param screenshotOnFailure",
"test:e2e:watch": "npm run test:e2e ; cd tests/e2e && chokidar './**/*.ts' -c 'echo \"\n{path} was modified\n\" && cd ../.. && npm run test:e2e -- --test-match \"{path}\"'", but it is nothing compared to the watch options Jest spoils us with. @mxschmitt don't you think this issue should be re-opened? |
yeah lets open I guess. |
Closing as duplicate of https://github.com/microsoft/folio/issues/150 we track it there. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice to have a watch mode that automatically re-runs tests when the file is saved similar to cypress. #6
The text was updated successfully, but these errors were encountered: