Skip to content

Commit

Permalink
🛠 add config for wallaby
Browse files Browse the repository at this point in the history
  • Loading branch information
kitze committed Nov 25, 2016
1 parent 3789bfb commit 13346df
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions wallaby.js
@@ -0,0 +1,28 @@
module.exports = function (wallaby) {
return {
files: [
'tests/mocks/*.js',
'src/**/*.js'
],
tests: [
'tests/**/*spec.js'
],
env: {
type: 'node',
runner: 'node'
},
testFramework: 'jest',
bootstrap: function (wallaby) {
wallaby.testFramework.configure({
"scriptPreprocessor": "<rootDir>/node_modules/babel-jest",
"moduleDirectories": [
"node_modules",
"src"
]
});
},
compilers: {
'**/*.js': wallaby.compilers.babel()
}
};
};

0 comments on commit 13346df

Please sign in to comment.