Skip to content

Commit

Permalink
chore: add wallaby config
Browse files Browse the repository at this point in the history
  • Loading branch information
blackxored committed Apr 22, 2018
1 parent 18d1209 commit f740c78
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
coverage
dist
app/templates/wallaby.config.js
wallaby.config.js
31 changes: 31 additions & 0 deletions wallaby.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
process.env.BABEL_ENV = 'test';

const path = require('path');

module.exports = function(wallaby) {
return {
files: [
'src/**/*.js',
'**/*.json',
'**/*.snap',
'package.json',
'!**/__tests__/*.js',
'!**/*.test.js',
],
tests: ['**/__tests__/*.js', '**/*.test.js', '!**/node_modules/**'],
env: {
type: 'node',
runner: 'node',
},

compilers: {
'**/*.js': wallaby.compilers.babel(),
},

testFramework: 'jest',

setup: wallaby => {
wallaby.testFramework.configure(require('./package.json').jest);
},
};
};

0 comments on commit f740c78

Please sign in to comment.