Last active
July 13, 2024 17:29
-
-
Save yleflour/dec8eb3a771277f7d8c410a5173b7c5f to your computer and use it in GitHub Desktop.
Wallaby + React Native
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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); | |
}, | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
are the plugins needed?