-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
42 lines (41 loc) · 1014 Bytes
/
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
const path = require('path');
const webpack = require('webpack');
const wallabyWebpack = require('wallaby-webpack');
module.exports = function(wallaby) {
return{
files: [
{ pattern: '*.ts', load: false },
{ pattern: 'test-images/*.png' },
],
tests: [
'./specs/*spec.ts'
],
env: {
kind: 'chrome',
params: {
runner: '--headless --mute-audio --autoplay-policy=no-user-gesture-required'
}
},
testFramework: 'jasmine',
setup: function () {
window.__moduleBundler.loadTests();
},
postprocessor: wallaby.postprocessors.webpack({
mode: 'none',
devtool: 'source-map',
output: {
path: path.resolve(__dirname, "dist"),
filename: 'index.js',
libraryTarget: 'umd'
},
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [
{ test: /\.ts$/, loader: 'ts-loader'}
]
}
})
}
}