-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
52 lines (46 loc) · 1.09 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const babel = require('babel-core')
const path = require('path')
module.exports = function (wallaby) {
return {
files: [
'lib/**/*.js',
'test/src/**/*.js',
'test/generators/**/*.js',
'test/helper.js',
'test/fixtures/fresh.js',
'test/fixtures/config/mat.config.js', // load it by wallaby to transpile es6.
{pattern: 'test/fixtures/config/**/*', instrument: false},
{pattern: 'test/fixtures/generated/**/*.js', instrument: false}
],
tests: [
'test/**/*.test.js'
],
env: {
type: 'node',
runner: 'node',
params: {
env: 'NODE_ENV=test;NODE_PATH=' + path.join(wallaby.projectCacheDir, '../')
}
},
compilers: {
'**/*.js': wallaby.compilers.babel({
babel,
babelrc: true,
plugins: [
['module-resolver',
{
root: ['./'],
alias: {
test: './test',
},
},
],
],
}),
},
testFramework: 'ava',
setup: function () {
require('babel-register')
}
}
}