Bug Report Checklist
If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
Expected
Without tests:
Error: No test files found: "test"
With tests:
Actual
Without tests:
Error: No test files found: "https://json.schemastore.org/mocharc.json"
With tests:
Warning: Cannot find any files matching pattern "https://json.schemastore.org/mocharc.json"
1 passing (0ms)
Overall, the $schema property should be ignored, as it's purely for providing IDE hints. Furthermore, it would be wise to pass a warning for other properties the config parser isn't aware of, before ignoring them. For instance, deprecated properties which have been removed.
Minimal, Complete and Verifiable Example
Without tests: Vessel9817/mocha-mre-1
With tests: Vessel9817/mocha-mre-1#with-tests
Versions
> mocha --version
12.0.0-rc.6
> &"./node_modules/.bin/mocha" --version
12.0.0-rc.6
> node --version
v24.16.0
- Environment: Node
- Shell: PowerShell
- Other modules:
cross-env (optional, for using debug)
Additional Info
Bug Report Checklist
If any of these required steps are not taken, we may not be able to review your issue. Help us to help you!
npm audit, or GitHub Advisory issue.faqlabel, but none matched my issue.Expected
Without tests:
With tests:
Actual
Without tests:
With tests:
Overall, the
$schemaproperty should be ignored, as it's purely for providing IDE hints. Furthermore, it would be wise to pass a warning for other properties the config parser isn't aware of, before ignoring them. For instance, deprecated properties which have been removed.Minimal, Complete and Verifiable Example
Without tests: Vessel9817/mocha-mre-1
With tests: Vessel9817/mocha-mre-1#with-tests
Versions
cross-env(optional, for usingdebug)Additional Info
DEBUG=mocha:*is set.Vessel9817/mocha-mre-1#successandVessel9817/mocha-mre-1#success-with-testsshow the same MCVEs, but with Mocha v11. This is to show that the issue is specific to the pre-release of Mocha version 12.