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
Feature Request: Support .mocharc files for discovering and running tests
Description: Mocha supports running tests directly from typescript files with the ts-node package. This is a really neat feature for developers since it eliminates the need to transpile tests before running the tests. However, the VS test adapter explicitly reads js files and passes those to mocha to determine what tests are available.
It would be great if the test adapter could read any mocharc file to determine what files to load and how to load them so that mocha can return the tests that can be executed.
Thanks!
The text was updated successfully, but these errors were encountered:
I'm having the exact same issue right now. My tests are done in typescript, and need to be run with ts-node require'd into the project. I have set it up in my .mochrc.json, but NodeJS Tools doesn't want it.
More so, because my project transpiles into a separate directory, Visual Studio can't pick up the transpiled scripts...
Feature Request: Support .mocharc files for discovering and running tests
Description: Mocha supports running tests directly from typescript files with the
ts-node
package. This is a really neat feature for developers since it eliminates the need to transpile tests before running the tests. However, the VS test adapter explicitly readsjs
files and passes those to mocha to determine what tests are available.It would be great if the test adapter could read any mocharc file to determine what files to load and how to load them so that mocha can return the tests that can be executed.
Thanks!
The text was updated successfully, but these errors were encountered: