Could not find test files
See original GitHub issueI cloned and installed repo from the command line. npm start starts the server, but npm test creates this error
```
ts-mongo-express-node-seed@0.0.0 test C:\Users\cliff\WebstormProjects\projectname\backend mocha --reporter spec --compilers ts:ts-node/register ‘**/*.test.ts’
Warning: Could not find any test files matching pattern: '**/*.test.ts'
No test files found
npm ERR! Test failed. See above for more details.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The 'TestCafe could not find the test file' error occurs when ...
Run a test file with the name containing brackets. What is the Current behavior? The following error occurs: TestCafe could not find the...
Read more >Testcafe through Docker does not find test files
The strange this is, that testcafe finds the file: ERROR TestCafe could not find the test files that match the following patterns: e2e/e2e.js...
Read more >FAQ
How do I work with configuration files and environment variables? ... My test fails because TestCafe could not find the required webpage element....
Read more >Test not run. Last runner error: Could not find file 'C:\Program ...
I get an error in the latest rider when starting any test in the test overview, not sure when this regression happened.
Read more >Configuring Jest
The configuration file should simply export an object: ... __tests__/**", "**/*.js"] will not exclude __tests__ because the negation is ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bersling @cliffeby for windows please use this. “test”: “mocha --reporter spec --compilers ts:ts-node/register **\*.test.ts”, I hope this will solve your problem. 😃
Thanks for spotting that, I fixed it