-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwallaby.js
34 lines (28 loc) · 934 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
module.exports = function (wallaby) {
var path = require('path');
return {
files: [
{load: true, instrument: true, pattern: 'src/config.js'},
{load: false, instrument: true, pattern: 'src/apps/StopWatch.js'},
{load: true, instrument: true, pattern: 'test/test-main-wallaby.js'},
'test/data/*.html'
],
tests: [
{load: false, instrument: true, pattern: 'src/apps/StopWatchTest.js'}
],
postprocessor: function (wallaby) {
return Promise.all([
wallaby.createFile({
path: 'bower_modules/requirejs/require.js', content: '', order: -1, ts: 1
}),
wallaby.createFile({
path: 'bower_modules/jquery/dist/jquery.js', content: '', order: -1, ts: 1
})
]);
},
middleware: function (app, express) {
app.use('/bower_modules', express.static(path.join(__dirname, 'bower_modules')));
},
debug: true
};
};