-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.conf.js
33 lines (27 loc) · 1005 Bytes
/
wallaby.conf.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
module.exports = function(wallaby) {
return {
workers: {
initial: 2,
regular: 2,
},
files: ['src/**/*.ts', '*.ts', 'tsconfig.json', '!*.nuxt.d.ts'],
tests: ['test/**/*.spec.ts'],
env: {
type: 'node',
},
testFramework: 'mocha',
compilers: {
'**/*.ts': wallaby.compilers.typeScript({
// TypeScript compiler specific options
// https://github.com/Microsoft/TypeScript/wiki/Compiler-Options
// (no need to duplicate tsconfig.json, if you have it, it'll be automatically used)
}),
},
setup: function(wallaby) {
require(wallaby.localProjectDir + '/test/env.js');
// wallaby.testFramework is jasmine/QUnit/mocha object
// you can access 'window' object in a browser environment,
// 'global' object or require(...) something in node environment
},
};
};