Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • "test": "mocha --require test-setup.js './**/*.spec.js'" such approach seems more reasonable for me. Test files should not have a different file type such as .spec.js Commented Dec 18, 2020 at 12:08
  • 1
    its hard to say without seeing the contents of the test-service1.js. Might be the case the runner is not able to detect any test-suite or test cases in that file and hence it runs just one file Commented Dec 18, 2020 at 13:11
  • Thx for your hint @BrijeshPrasad I removed the test-service1.js file and all other tests seems to run. What bother me is that the tests written in the test-service1.js file are run and successfull. I'll check for other problems. Commented Dec 18, 2020 at 16:13