-
Notifications
You must be signed in to change notification settings - Fork 49
/
wallaby.js
58 lines (45 loc) · 1.32 KB
/
wallaby.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
49
50
51
52
53
54
55
56
57
58
'use strict';
// Initialize the development environment for unit tests
process.env.NODE_ENV = 'development';
// Initialize the Wallaby configuration
module.exports = function() {
return {
// Manage runtime execution
debug: false,
trace: false,
// Default the desired code-coverage level
lowCoverageThreshold: 90,
// Define the files processed by Wallaby
files: [
'!wallaby.js',
'config/**',
'lib/**/*.js',
'!test/**/*.test.js'
],
// Define the tests to process
tests: [
'test/**/*.test.js',
'!test/cli-interface/**/*.cli.test.js',
],
// Define the files that shouldn't be used to calculate test coverage
filesWithNoCoverageCalculated: [
'lib/**/index.js',
'lib/qa/**/*.js',
'lib/cli-interface/ui/*.js',
'lib/cli-interface/*.js'
],
// Identify the test-framework to leverage
testFramework: { type: 'mocha' },
// Define the node environment
env: {
type: 'node',
runner: 'node'
},
// Restart test workers with each test-run
workers: {
recycle: true,
initial: 1,
regular: 1
}
}
}