-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
46 lines (42 loc) · 1.14 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
38
39
40
41
42
43
44
45
46
const wallabyWebpack = require('wallaby-webpack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const webpackPostprocessor = wallabyWebpack({
plugins: [
new ForkTsCheckerWebpackPlugin()
]
});
module.exports = function () {
return {
files: [
{ pattern: 'src/scan/**/*', load: false },
],
tests: [
{ pattern: 'test/**/*.spec.ts', load: false }
],
postprocessor: webpackPostprocessor,
bootstrap: function () {
window.__moduleBundler.loadTests();
},
env: {
kind: 'chrome',
params: {
runner: [
'--headless',
'--disable-gpu',
'--disable-translate',
'--disable-extensions',
'--disable-background-networking',
'--safebrowsing-disable-auto-update',
'--disable-sync',
'--metrics-recording-only',
'--disable-default-apps',
'--no-first-run',
'--use-fake-ui-for-media-stream',
'--use-fake-device-for-media-stream',
'--enable-experimental-web-platform-features'
].join(' ')
}
},
testFramework: 'mocha',
};
};