-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallaby.js
More file actions
32 lines (31 loc) · 860 Bytes
/
wallaby.js
File metadata and controls
32 lines (31 loc) · 860 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
32
module.exports = function() {
return {
files: [
{pattern: 'src/**/events/**/*.ts'},
{pattern: 'resources/**/*', instrument: false},
{pattern: 'src/**/*.spec.ts', ignore: true},
{pattern: 'tsconfig.*', instrument: false},
{pattern: 'package.json', instrument: false},
{pattern: 'jest.json', instrument: false},
{pattern: 'dockerless.yml', instrument: false}
],
tests: [{pattern: 'src/**/*.spec.ts'}],
env: {
type: 'node',
runner: 'node'
},
testFramework: 'jest',
debug: true,
setup: function(wallaby) {
const jestConfig = require('./jest.json')
Object.keys(jestConfig.moduleNameMapper).forEach(
k =>
(jestConfig.moduleNameMapper[k] = jestConfig.moduleNameMapper[k].replace(
'<rootDir>',
wallaby.localProjectDir + 'src/'
))
)
wallaby.testFramework.configure(jestConfig)
}
}
}