-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathwallaby.js
More file actions
45 lines (36 loc) · 1.73 KB
/
wallaby.js
File metadata and controls
45 lines (36 loc) · 1.73 KB
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
var wallabyWebpack = require('wallaby-webpack');
var webpackConfig = require('./config/webpack.test.js');
var typescriptConfig = require('./tsconfig.json');
webpackConfig.resolve.extensions = ['', '.js', '.json'];
webpackConfig.module.loaders = webpackConfig.module.loaders.filter(function(l){
return l.loader !== 'awesome-typescript-loader';
});
delete webpackConfig.devtool;
var wallabyPostprocessor = wallabyWebpack(webpackConfig);
module.exports = function (wallaby) {
return {
files: [
// Polyfills
{ pattern: 'node_modules/core-js/client/shim.min.js', instrument: false},
{ pattern: 'node_modules/reflect-metadata/Reflect.js', instrument: false},
// zone.js
{ 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/proxy.js', instrument: false},
{ pattern: 'node_modules/zone.js/dist/sync-test.js', instrument: false},
{ pattern: 'node_modules/zone.js/dist/jasmine-patch.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: 'src/**/*.spec.ts', ignore: true },
{ pattern: 'src/**/*.ts', load: false },
// { pattern: 'testing/**/*+(ts|html|css)', load: false},
],
tests: [
{ pattern: 'src/**/*.spec.ts', load: false }
],
postprocessor: wallabyPostprocessor,
bootstrap: function() {
window.__moduleBundler.loadTests();
}
};
};