Skip to content

Instantly share code, notes, and snippets.

@yleflour yleflour/wallaby.js
Last active Apr 12, 2019

Embed
What would you like to do?
Wallaby + React Native
/*
WallabyJS React Native Config
Works well with Jest + Enzyme
*/
/* eslint-disable */
module.exports = function (wallaby) {
return {
files: [
'src/**/*.js',
'package.json',
'!src/**/__tests__/*.js',
'!src/**/*.test.js',
],
tests: [
'src/**/__tests__/*.js',
'src/**/*.test.js',
],
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
compilers: {
'**/*.js': wallaby.compilers.babel({
presets: [
'react-native',
'react-native-stage-0/decorator-support',
],
plugins: [
'transform-flow-strip-types',
'transform-object-rest-spread',
'transform-async-to-generator',
],
}),
},
setup: (wallaby) => {
wallaby.testFramework.configure(require('./package.json').jest);
},
};
};
@bj97301

This comment has been minimized.

Copy link

commented Apr 12, 2019

are the plugins needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.