-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orgarea: node.jscommand-line-or-Node.js-specificcommand-line-or-Node.js-specificarea: usabilityconcerning user experience or interfaceconcerning user experience or interfacetype: buga defect, confirmed by a maintainera defect, confirmed by a maintainertype: questionsupport questionsupport question
Description
Prerequisites
- Checked that your issue hasn't already been filed by cross-referencing issues with the
faqlabel - Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
- 'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
- Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with:
node node_modules/.bin/mocha --version(Local) andmocha --version(Global). We recommend avoiding the use of globally installed Mocha.
Description
v6.0.0 seems not work for small projects without test/ folder and with test.js in root instead/
Steps to Reproduce
- project: https://github.com/markdown-it/uc.micro
- greenkeeper PR and Travis-CI log: Update mocha to the latest version 🚀 markdown-it/uc.micro#11
Expected behavior: [What you expect to happen]
Everything should work as before
Actual behavior: [What actually happens]
$ npm test
> [email protected] test /home/travis/build/markdown-it/uc.micro
> mocha
Error: No test files found: "test/"
npm ERR! Test failed. See above for more details.
The command "npm test" exited with 1.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
- The output of
mocha --versionandnode node_modules/.bin/mocha --version: 6.0.0 - The output of
node --version: v10.11.0 - The version and architecture of your operating system: Ubuntu 18.04
- Your shell (bash, zsh, PowerShell, cmd, etc.): bash
- Your browser and version (if running browser tests):
- Any other third party Mocha related modules (with versions):
- The code transpiler being used:
Additional Information
I could not find any info that such feature was deprecated. Let me know if i missed something.
Metadata
Metadata
Assignees
Labels
area: documentationanything involving docs or mochajs.organything involving docs or mochajs.orgarea: node.jscommand-line-or-Node.js-specificcommand-line-or-Node.js-specificarea: usabilityconcerning user experience or interfaceconcerning user experience or interfacetype: buga defect, confirmed by a maintainera defect, confirmed by a maintainertype: questionsupport questionsupport question