![]() mocharc.yml are valid "rc" file names and will be automatically loaded Mocha now supports "RC" files in JS, JSON, YAML, or package.json-based (using mocha property) format #3726: Add ability to unload files from require cache ( introduced in #3556:.Mocha.opts is now considered "legacy" please prefer RC file or package.json over mocha.opts. Use property timeout: false instead of enableTimeouts: falseĪll of the above deprecations were introduced by #3556.Use property color: false instead of useColors: false.Regarding the Mocha class constructor (from lib/mocha): Consumers of the function exported by bin/options should now use the loadMochaOpts or loadOptions (preferred) functions exported by the lib/cli/options module.-gc users should use -gc-global instead.Support will be removed in (likely) the next major version of Mocha: These are soft-deprecated, and will emit a warning upon use. Please use the code property to check Error types instead of the message property these descriptions will be localized in the future. #3275: -watch-extensions no longer implies js it must be explicitly added ( #2908: tap reporter emits error messages ( #2819: When conditionally skipping in a before hook, subsequent before hooks and tests in nested suites are now skipped ( #627: Emit filepath in "timeout exceeded" exceptions where applicable ( #3556: lib/template.html has moved to lib/browser/template.html ( #2576: An exception is now thrown if Mocha fails to parse or find a mocha.opts at a user-specified path ( #3458: Instantiating a Base-extending reporter without a Runner parameter will throw an exception ( #3125: For consumers of Mocha's programmatic API, all exceptions thrown from Mocha now have a code property (and some will have additional metadata).-d is no longer an alias for -debug -d is currently ignored. ![]() ![]() -compilers is no longer supported attempting to use will cause Mocha to fail with a link to more information.#3149: Drop Node.js v4.x support ( #3556: Changes to command-line options ( -grep and -fgrep are now mutually exclusive attempting to use both will cause Mocha to fail instead of simply ignoring -grep.Release Notes for v6.0.0 6.0.0 / □ Breaking Changes However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update. If you don’t accept this pull request, your project will work just like it did before. This version is not covered by your current version range. The devDependency mocha was updated from 5.2.0 to 6.0.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |