diff --git a/.eslintignore b/.eslintignore index 30d12af..49126fc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,3 +2,4 @@ node_modules coverage dist app/templates/wallaby.config.js +wallaby.config.js diff --git a/wallaby.config.js b/wallaby.config.js new file mode 100644 index 0000000..bc6e6a4 --- /dev/null +++ b/wallaby.config.js @@ -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); + }, + }; +};