-
Notifications
You must be signed in to change notification settings - Fork 0
/
Wallaby.js
33 lines (28 loc) · 866 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
// Wallaby.js configuration
const wallabify = require('wallabify')
const wallabyPostprocessor = wallabify({
// browserify options, such as
// insertGlobals: false
}
// you may also pass an initializer function to chain other
// browserify options, such as transformers
// , b => b.exclude('mkdirp').transform(require('babelify'))
)
module.exports = function () {
return {
// set `load: false` to all of the browserified source files and tests,
// as they should not be loaded in browser,
// their browserified versions will be loaded instead
files: [
{ pattern: 'src/**/*.js', load: false }
],
tests: [
{ pattern: 'test/**/*.js', load: false }
],
postprocessor: wallabyPostprocessor,
setup: function () {
// required to trigger tests loading
window.__moduleBundler.loadTests()
}
}
}