From f740c78bbb64f1e9d608eeacde72dcd207cdcc84 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Sun, 22 Apr 2018 11:30:03 +0200 Subject: [PATCH] chore: add wallaby config --- .eslintignore | 1 + wallaby.config.js | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 wallaby.config.js 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); + }, + }; +};