Skip to content

Commit

Permalink
Adds wallaby.js config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed Mar 16, 2018
1 parent a11940b commit 9b2785d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions wallaby.js
@@ -0,0 +1,20 @@
const fs = require('fs')
const path = require('path')

process.env.NODE_ENV = 'test'

const babelConfigContents = fs.readFileSync(path.join(__dirname, '.babelrc'))
const babelConfig = JSON.parse(babelConfigContents)

module.exports = wallaby => ({
files: ['src/**/*.js', { pattern: 'src/**/*.test.js', ignore: true }],
tests: ['src/**/*.test.js'],
testFramework: 'jest',
env: {
type: 'node',
runner: 'node',
},
compilers: {
'src/**/*.js': wallaby.compilers.babel(babelConfig),
},
})

0 comments on commit 9b2785d

Please sign in to comment.