Support .mocharc Files
benrr101 opened this issue · 1 comments
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!
Yes !
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...