question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find test files

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
VishalBirthcommented, Jun 1, 2017

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

0reactions
berslingcommented, Jun 6, 2017

Thanks for spotting that, I fixed it

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found