Skip to content

test.js in root no longer works with v6.0.0 #3750

@puzrin

Description

@puzrin

Prerequisites

  • Checked that your issue hasn't already been filed by cross-referencing issues with the faq label
  • 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) and mocha --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

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 --version and node 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

No one assigned

    Labels

    area: documentationanything involving docs or mochajs.orgarea: node.jscommand-line-or-Node.js-specificarea: usabilityconcerning user experience or interfacetype: buga defect, confirmed by a maintainertype: questionsupport question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions