-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mocharc.js
48 lines (46 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
'use strict';
let tag = process.env.npm_package_config_grep;
tag = tag !== undefined ? tag : '';
// 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: true, // could be expressed as "'no-exit': true"
//extension: ['js'],
// fgrep: something, // fgrep and grep are mutually exclusive
//file: ['./__tests__/bootstrap.js'],
//'forbid-only': false,
//'forbid-pending': false,
//'full-trace': false,
//global: ['jQuery', '$'],
//grep: tag, // fgrep and grep are mutually exclusive
//growl: false,
//'inline-diffs': false,
// invert: false, // needs to be used with grep or fgrep
//jobs: 1,
package: './package.json',
parallel: false,
//recursive: false,
reporter: 'spec',
//'reporter-option': ['foo=bar', 'baz=quux'],
require: './libs/bootstrap.js',
retries: 0,
//slow: '75',
//sort: false,
//spec: ['./__tests__/*.test.js'],
spec: ['./database/*.test.js', './__tests__/**/*.test.js'],
timeout: '15000',
//'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']
};