Skip to content

Instantly share code, notes, and snippets.

@maximromanyuk
Created April 7, 2017 10:14
Show Gist options
  • Save maximromanyuk/f66a120b874c1fb25e30e181a6602592 to your computer and use it in GitHub Desktop.
Save maximromanyuk/f66a120b874c1fb25e30e181a6602592 to your computer and use it in GitHub Desktop.
Wallaby config for React Native
/*
WallabyJS React Native Config
Works well with Jest + Enzyme
*/
/* eslint-disable */
module.exports = function (wallaby) {
return {
files: [
'src/**/*.js',
'package.json',
'!src/**/__specs__/*.js',
'!src/**/*.spec.js',
],
tests: [
'src/**/__specs__/*.js',
'src/**/*.spec.js',
],
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
compilers: {
'**/*.js': wallaby.compilers.babel({
presets: [
'react-native'
],
plugins: [
'transform-flow-strip-types',
'transform-object-rest-spread',
'transform-async-to-generator',
],
}),
},
setup: (wallaby) => {
wallaby.testFramework.configure(require('./package.json').jest);
},
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment