-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mocharc.js
38 lines (36 loc) · 1.12 KB
/
.mocharc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'use strict';
// 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,
// e.g. set options via environment variables 'process.env'.
// Otherwise, JSON or YAML is recommended.
module.exports = {
'allow-uncaught': false,
'async-only': false,
bail: false,
'check-leaks': true,
color: true,
delay: false,
diff: true,
exit: true, // could be expressed as "'no-exit': true"
extension: ['js', 'cjs', 'mjs'],
'fail-zero': true,
'forbid-only': false,
'forbid-pending': false,
'full-trace': false,
growl: false,
jobs: 1,
'node-option': ['unhandled-rejections=strict'], // without leading "--", also V8 flags
package: './package.json',
parallel: false,
recursive: true,
reporter: 'spec',
retries: 1,
sort: true,
spec: ['lib/**/*.test.js'], // the positional arguments!
timeout: '10000', // same as "timeout: '10s'"
// timeout: false, // same as "timeout: 0"
'trace-warnings': true, // node flags ok
ui: 'bdd',
'v8-stack-trace-limit': 100, // V8 flags are prepended with "v8-"
watch: false
};