-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathwallaby.conf.js
44 lines (41 loc) · 1.3 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
41
42
43
44
// 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',
params: {
env: 'AWS_REGION=us-west-2;AWS_CONTAINER_CREDENTIALS_FULL_URI=http://127.0.0.1:9911'
},
},
debug: true,
}
}