I’m running this command in my terminal (Windows 10 cmd):
TEST-WATCH=1 meteor test --driver-package meteortesting:mocha
But I get this as an error:
'TEST-WATCH' is not recognized as an internal or external command, operable program or batch file.
If I remove
TEST-WATCH=1, it runs fine for 3 iterations then I get the tests work and I get this error:
Exited with code: 0 Your application is crashing. Waiting for file change.
For which people say to add
My tests also works completely fine with
--once instead, but only runs once and have to manually rerun the test after each modification.
I’ve also tried using the practicalmeteor:mocha package instead, but I get this error:
Exception while invoking method 'mocha/runServerTests' Error: invalid reporter "[object Object]"
Which for this one I don’t seem to be the only one with this problem, but from what I quickly read it is recommended to use meteortesting:mocha for now.
Anyway, I’d like to know what I can do to fix the
TEST_WATCH problem that I have, do you guys have an idea of what could be the problem? I assume I need to install something more so that my environment variable would be set, or I set it manually, but I can’t find any informations on what do install or set.