You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a repository that uses Mocha for testing (so there's a .mocharc.json in the root and mocha is referenced in package.json). I also have both this extension and Mocha Test Explorer installed.
Mocha Test Explorer adds Run and Debug options over each test just like the Jest runner does:
The challenge is that if I pick the wrong "Run" then it tries to run the tests using Jest... but Jest isn't installed or referenced here.
It would probably be good to do some sort of detection of whether Jest is even installed/referenced before showing the option to run/debug tests; otherwise it competes with other extensions and gets confusing.
The text was updated successfully, but these errors were encountered:
If I'm not mistaken, the monorepo situation would still be covered by "If any settings jestrunner.* is set" - if the config isn't in the file ancestry, it'd have to be provided to the extension somehow, which would mean the test command would need to be configured or the config location would need to be configured.
I suppose there's technically "run without any config" too. I'm not sure what to do about that.
But, yes, the workaround is to disable the extension, which I did.
I have a repository that uses Mocha for testing (so there's a
.mocharc.json
in the root andmocha
is referenced inpackage.json
). I also have both this extension and Mocha Test Explorer installed.Mocha Test Explorer adds
Run
andDebug
options over each test just like the Jest runner does:The challenge is that if I pick the wrong "Run" then it tries to run the tests using Jest... but Jest isn't installed or referenced here.
It would probably be good to do some sort of detection of whether Jest is even installed/referenced before showing the option to run/debug tests; otherwise it competes with other extensions and gets confusing.
The text was updated successfully, but these errors were encountered: