This is an internal package. Please use meteortesting:mocha
In case you want to in- or decrease the default timeout of 2000 ms, you can set the environment variable MOCHA_TIMEOUT
in your shell which will be picked up by this library and passed on to the mocha instance.
You can configure the mocha runner with a .mocharc.js
or a .mocharc.json
file at the root of your Meteor app. This package uses mocha programmatically, so it supports a constrained list of options.
If both files are defined, .mocharc.js
will overwrite the settings in .mocharc.json
.
The setting timeout
will be overwritten if the environment variable MOCHA_TIMEOUT
is set.
Feel free to start with this file as an example:
module.exports = {
forbidOnly: process.env.IS_CI, // You could set this variable inside your continuous integration platform
retries: 2,
slow: 200,
timeout: 10000,
grep: 'hello' // Only runs tests whose name contains this
};