Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .mocharc Files #2363

Open
benrr101 opened this issue Mar 3, 2022 · 1 comment
Open

Support .mocharc Files #2363

benrr101 opened this issue Mar 3, 2022 · 1 comment

Comments

@benrr101
Copy link

benrr101 commented Mar 3, 2022

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!

@COLAMAroro
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants