-
Notifications
You must be signed in to change notification settings - Fork 65
/
wallaby.conf.js
40 lines (37 loc) · 1.18 KB
/
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
34
35
36
37
38
39
40
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const compilerOptions = Object.assign({
'esModuleInterop': true,
'target': 'esnext',
'module': 'commonjs'
})
module.exports = function (wallaby) {
var path = require('path');
process.env.NODE_PATH += path.delimiter + path.join(wallaby.localProjectDir, 'core', 'node_modules');
return {
files: [
'modules/**/src/**/*.ts',
'modules/**/fixtures.ts',
{ pattern: 'modules/**/test/**/*.test.ts', ignore: true},
{ pattern: 'modules/**/node_modules/**', ignore: true},
{ pattern: 'modules/**/build/**', ignore: true},
{ pattern: 'modules/*-browser/**/*.ts', ignore: true},
{ pattern: 'modules/*-backend/**/*.ts', ignore: true},
],
tests: [
'modules/**/test/**/*test.ts',
'!modules/**/node_modules/**',
'!modules/**/build/**',
'!modules/*-+(browser|backend)/**/*.ts'
],
filesWithNoCoverageCalculated: [
'modules/**/src/index.ts'
],
testFramework: 'mocha',
compilers: {
'**/*.ts': wallaby.compilers.typeScript(compilerOptions)
},
env: { type: 'node' },
debug: true,
}
}