Watch A Directory And Run Mocha JS With ES Modules When Files Change
This is how I'm running Mochajs in watch mode with ES Modules:
Code
Adding `--parallel` is based off this comment to a GitHub issue about `--watch` not working by itself with ES Modules.
If you try to run `mocha --watch` without `--parallel` it produces errors like:
Code
(I think I've done the dynamic import stuff before in other projects, but haven't tried it with Mocha yet)