-
Notifications
You must be signed in to change notification settings - Fork 1
/
wallaby.config.js
56 lines (49 loc) · 1.92 KB
/
wallaby.config.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
47
48
49
50
51
52
53
54
55
56
const webpack = require('webpack');
const wallabyWebpack = require('wallaby-webpack');
const path = require('path');
module.exports = function (wallaby) {
const webpackConfiguration = {
module: {
rules: [
{
test: /\.html$/,
use: 'raw-loader',
},
{
test: /\.scss$/,
use: ['raw-loader', 'sass-loader'],
},
]
},
plugins: [
new webpack.DefinePlugin({
NODE_ENV: JSON.stringify('development'),
})
],
};
return {
files: [
{ pattern: 'node_modules/core-js/client/shim.min.js', instrument: false },
// Zone.js dependencies
{ pattern: 'node_modules/zone.js/dist/zone.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/long-stack-trace-zone.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/async-test.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/fake-async-test.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/sync-test.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/proxy.js', instrument: false },
{ pattern: 'node_modules/zone.js/dist/jasmine-patch.js', instrument: false },
{ pattern: 'Notes/**/*.json', load: false },
{ pattern: 'src/**/*.scss', load: false },
{ pattern: 'src/**/*.html', load: false },
{ pattern: 'src/**/*.ts', load: false },
{ pattern: 'src/**/*.spec.ts', load: false, ignore: true }
],
tests: [
{ pattern: 'src/**/*.spec.ts', load: false }
],
postprocessor: wallabyWebpack(webpackConfiguration),
setup: function () {
window.__moduleBundler.loadTests();
}
};
};