-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathwallaby.js
More file actions
31 lines (30 loc) · 727 Bytes
/
Copy pathwallaby.js
File metadata and controls
31 lines (30 loc) · 727 Bytes
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
module.exports = function (wallaby) {
return {
files: [
'src/**/*.{ts?(x),js}',
'test/**/*.{ts?(x),js}',
'!src/**/?(*.)spec.ts?(x)',
'jest.config.js',
'tsconfig.json',
],
tests: ['src/**/?(*.)spec.ts?(x)'],
env: {
type: 'node',
runner: 'node'
},
setup: function (wallaby) {
const jestConfig = require('./jest.config');
delete jestConfig.transform;
delete jestConfig.moduleFileExtensions;
jestConfig.globals = { __DEV__: true };
wallaby.testFramework.configure(jestConfig);
},
testFramework: 'jest',
compilers: {
'**/*.ts?(x)': wallaby.compilers.typeScript()
},
env: {
type: 'node',
},
};
};