-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
26 lines (24 loc) · 830 Bytes
/
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
module.exports = function (w) {
return {
files: ['src/**/*.ts', '!src/**/*.spec.ts', 'src/**/*.json', 'jest.json'],
tests: ['src/**/*.spec.ts'],
env: {
type: 'node',
},
setup: function (wallaby) {
var jestConfig = require('./jest.json');
/* for example:
* jestConfig.globals = { "__DEV__": true }; */
wallaby.testFramework.configure(jestConfig);
},
compilers: {
'**/*.ts?(x)': w.compilers.typeScript({
resolveJsonModule: true,
esModuleInterop: true
}),
},
// or any other supported testing framework:
// https://wallabyjs.com/docs/integration/overview.html#supported-testing-frameworks
testFramework: 'jest',
};
};