-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Mocha reports 'No test files found' since mocha 6 (with ts-node) #3772
Comments
It's a 6.0 bug (#3763), fix is in process. "package.json":{
"scripts": {
"test": "mocha 'test/**/*.ts'"
}
} |
Thanks for the quick response. Super appreciate this project! |
I have a similar kind of problem. Please take a look at the following link. |
This still exists today unfortunately. |
It doesn't, I use this configuration and it's perfect:
|
Oh, I'm sorry. I didn't mean to necrobump this, especially since it's not the right issue I was looking at 😢 Thanks for replying and adding your example! |
For me, the problem was that I didn't specify If you leave |
@ComFreek I really appreciate your comment... I only added this on my mocha config and works fine :D |
Thanks man you are life saver ! :D |
This was the solution to this error i had when a run test coverage script |
"test": "mocha ./tests/**/* --timeout 20000 --exit", |
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
Since the upgrade to mocha 6 my tests no longer work. I ensures that it wasn't any other package update that caused this issue by keeping all my dependencies identical except mocha 5 / 6.
The configuration I use in `mocha.opts' is as follows:
The error I get from running
./node_modules/.bin/mocha
is'No test files found
I realize that this issue might not be caused by mocha, but it seemed like a good first place to ask. Could something have changed that would cause something like
ts-node
to fail?The text was updated successfully, but these errors were encountered: