![]() It is possible to specify a custom location for your configuration file this is achieved using the ?config option. Mocha recommends that you use one of the above strategies for configuration rather than the legacy mocha.opts format. package.json: You should not create a mocha property in your project's package.json.Comments - though they are not valid JSON - are allowed in this file, and are ignored by Mocha. ![]() mocharc.jsonc) in your project's root directory. mocharc.yml) in your project's root directory. mocharc.js in your project's root directory, and then export an object (module.exports = ) containing your configuration. Added to supporting the legacy mocha.opts run-control format, mocha currently supports configuration files, this is typical of modern command-line tools, in several formats as shown below: ![]() The ability to configure mocha in node.js came with the version 6.0.0 of Mocha. In the last tutorial, you were treated "desktop notifications", in this tutorial we will walk you through the process of configuring Mocha in node.js.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |