Skip to content

Commit

Permalink
Merge pull request #75 from ArtemGovorov/patch-1
Browse files Browse the repository at this point in the history
Add wallaby.js config
  • Loading branch information
orta committed Jan 3, 2017
2 parents a895c81 + b825ea6 commit fdc6fc7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions wallaby.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = (wallaby) => ({
files: [
{pattern: "source/**/fixtures/**/*.*", instrument: false},
"source/**/!(*.test).js",
{pattern: "package.json", instrument: false}
],

tests: [
"source/**/*.test.js"
],

env: {
type: "node"
},

compilers: {
"**/*.js?(x)": wallaby.compilers.babel()
},

// fixtures are not instrumented, but still need to be compiled
preprocessors: {
"source/**/fixtures/**/*.js?(x)": file => require('babel-core')
.transform(
file.content,
JSON.parse(require('fs').readFileSync(require('path').join(__dirname, '.babelrc'))))
},

testFramework: "jest"
})

0 comments on commit fdc6fc7

Please sign in to comment.