-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.wallaby.browser.js
63 lines (61 loc) · 1.26 KB
/
.wallaby.browser.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
57
58
59
60
61
62
63
'use strict';
/* eslint import/no-require:0 */
module.exports = function wallabyConfig (wallaby) {
return {
files: [
{
pattern: 'node_modules/babel-polyfill/dist/polyfill.js',
instrument: false
},
{
pattern: 'src/**/*.js',
load: false
},
{
pattern: 'test/fixture.js',
load: false
},
{
pattern: 'test/unit/**/*.spec.js',
ignore: true
},
{
pattern: 'package.json',
load: false
},
{
pattern: 'node_modules/mocha-ui-bdd/**',
instrument: false,
load: false
}
],
tests: [
{
pattern: 'test/unit/**/*.spec.js',
load: false
}
],
env: {
runner: require('phantomjs-prebuilt').path,
params: {
runner: '--web-security=false'
}
},
compilers: {
'**/*.js': wallaby.compilers.babel()
},
postprocessor: require('wallabify')({
debug: true,
entryPatterns: [
'test/fixture.js',
'test/unit/**/*.spec.js'
],
ignore: 'test/unit/plugins/resolver.spec.js'
}),
testFramework: 'mocha',
bootstrap: function bootstrap () {
window.__moduleBundler.loadTests();
},
debug: true
};
};