-
Notifications
You must be signed in to change notification settings - Fork 12
/
wallaby.js
37 lines (35 loc) · 1.18 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
module.exports = function(wallaby) {
return {
files: [
'src/**/*.ts',
'src/**/brotli-decode.js',
'test-helpers/**/*.js',
'package.json',
// Scoped modules don't get mapped properly, and we need these
// for the typescript parser, which loads node_modules directly
// - specifically @types, and @hapi/hapi (required by ProxyConfig.ts - the @babel stuff is a dependency
// somewhere in the tree)
{ pattern: 'node_modules/@types/**/*', instrument: false },
{ pattern: 'node_modules/@hapi/**/*', instrument: false },
{ pattern: 'node_modules/@babel/**/*', instrument: false },
'!src/**/__tests__/*.spec.ts'
],
tests: [
'src/**/__tests__/*.spec.ts',
// For some reason, configLoader (actually parseTypescript) can't find iconv-lite module in wallaby
'!src/__tests__/configLoader.spec.ts'
],
env: {
type: 'node',
runner: 'node'
},
compilers: {
'src/**/*.ts': wallaby.compilers.typeScript({})
},
testFramework: 'jest',
setup: function(wallaby) {
var jestConfig = require('./package.json').jest;
wallaby.testFramework.configure(jestConfig);
}
};
};