-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
32 lines (29 loc) · 1003 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
const wallabyWebpack = require('wallaby-webpack');
module.exports = function (wallaby) {
const webpackConfiguration = require('./webpack.config');
webpackConfiguration.entry = {};
webpackConfiguration.resolve.extensions = ['', '.js'];
webpackConfiguration.entryPatterns = ['app/app.js', 'test/index.js', 'test/**/*.spec.js'];
webpackConfiguration.resolve.root = wallaby.projectCacheDir;
webpackConfiguration.module.loaders.shift();
return {
files: [
{ pattern: 'app/**/*.js', load: false },
{ pattern: 'app/**/*.ts', load: false },
{ pattern: 'app/**/*.html', load: false },
{ pattern: 'app/**/*.scss', load: false },
{ pattern: 'test/index.js', load: false }
],
tests: [
{ pattern: 'test/**/*.spec.js', load: false }
],
testFramework: 'jasmine',
env: {
kind: 'electron'
},
postprocessor: wallabyWebpack(webpackConfiguration),
bootstrap: function () {
window.__moduleBundler.loadTests();
}
};
};