You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`--opts: configuring Mocha via 'mocha.opts' is DEPRECATED and no longer supported.
Please use a configuration file instead.`
);
}
This is dead weight on the project. IMO there's no real need to keep it around given how it's been deprecated with a loud warning & migration path (using a config instead) for 5 years.
Suggested Solution
I propose we remove it in a future major version, such as Mocha 12.
Alternatives
We could leave it in, but all it does now is throw createUnsupportedError.
Marking as accepting PRs. Note that we won't be able to merge it until we start merging PRs for Mocha v12. Which will be an unknown, not-very-soon time from now.
Feature Request Checklist
faq
label, but none matched my issue.Overview
As of #4175,
mocha.opts
is deprecated and non-functional. I've yet to see anybody use it in real projects. But the code still exists:mocha/lib/cli/run.js
Lines 341 to 346 in e3da641
This is dead weight on the project. IMO there's no real need to keep it around given how it's been deprecated with a loud warning & migration path (using a config instead) for 5 years.
Suggested Solution
I propose we remove it in a future major version, such as Mocha 12.
Alternatives
We could leave it in, but all it does now is
throw createUnsupportedError
.Additional Info
Similar sibling issue: #5242
The text was updated successfully, but these errors were encountered: