-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update config file examples (#4225) [ci skip]
- Loading branch information
1 parent
21652d9
commit e9860b3
Showing
4 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,47 @@ | ||
'use strict'; | ||
|
||
// Here's a JavaScript-based config file. | ||
// This is a JavaScript-based config file containing every Mocha option plus others. | ||
// If you need conditional logic, you might want to use this type of config. | ||
// Otherwise, JSON or YAML is recommended. | ||
|
||
module.exports = { | ||
'allow-uncaught': false, | ||
'async-only': false, | ||
bail: false, | ||
'check-leaks': false, | ||
color: true, | ||
delay: false, | ||
diff: true, | ||
exit: false, // could be expressed as "'no-exit': true" | ||
extension: ['js'], | ||
// fgrep: something, // fgrep and grep are mutually exclusive | ||
file: ['/path/to/some/file', '/path/to/some/other/file'], | ||
'forbid-only': false, | ||
'forbid-pending': false, | ||
'full-trace': false, | ||
global: ['jQuery', '$'], | ||
// grep: something, // fgrep and grep are mutually exclusive | ||
growl: false, | ||
ignore: ['/path/to/some/ignored/file'], | ||
'inline-diffs': false, | ||
// invert: false, // needs to be used with grep or fgrep | ||
jobs: 1, | ||
package: './package.json', | ||
parallel: false, | ||
recursive: false, | ||
reporter: 'spec', | ||
slow: 75, | ||
timeout: 2000, | ||
'reporter-option': ['foo=bar', 'baz=quux'], | ||
require: '@babel/register', | ||
retries: 1, | ||
slow: '75', | ||
sort: false, | ||
spec: ['test/**/*.spec.js'], // the positional arguments! | ||
timeout: '2000', // same as "timeout: '2s'" | ||
// timeout: false, // same as "'no-timeout': true" or "timeout: 0" | ||
'trace-warnings': true, // node flags ok | ||
ui: 'bdd', | ||
'v8-stack-trace-limit': 100, // V8 flags are prepended with "v8-" | ||
watch: false, | ||
'watch-files': ['lib/**/*.js', 'test/**/*.js'], | ||
'watch-ignore': ['lib/vendor'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters