-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
wallaby.e2e.js
37 lines (35 loc) · 701 Bytes
/
wallaby.e2e.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
export default function wallaby () {
return {
testFramework: 'mocha',
files: [
'config/*',
'public/v1/*',
'public/**/*.yaml',
'test/plugins/**/*',
'test/e2e/setup.ts',
'test/e2e/utils.ts',
'test/e2e/docker.ts',
'src/**/*.ts',
'migrations/*',
'seeds/**/*',
'knexfile.js',
'package.json',
],
tests: [
'test/e2e/**/*.test.ts',
],
setup (w) {
const path = require('path');
w.testFramework.addFile(path.resolve(process.cwd(), 'test/e2e/setup.js'));
w.testFramework.timeout(20000);
},
env: {
type: 'node',
params: {
env: 'NODE_ENV=test',
},
},
workers: { restart: true, initial: 1, regular: 1 },
runMode: 'onsave',
};
}