mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-11 00:08:50 +08:00
45 lines
934 B
JavaScript
45 lines
934 B
JavaScript
const babelOptions = require('./babel.config')();
|
|
|
|
module.exports = function (wallaby) {
|
|
return {
|
|
env: {
|
|
type: 'node',
|
|
runner: 'node'
|
|
},
|
|
|
|
testFramework: 'jest',
|
|
|
|
files: [
|
|
'package.json',
|
|
'lib/src/**/*.js',
|
|
'lib/src/**/*.ts',
|
|
'lib/src/**/*.tsx',
|
|
'!lib/src/Notifications.ts',
|
|
'!lib/src/**/*.test.tsx',
|
|
'!lib/src/**/*.test.js',
|
|
'!lib/src/**/*.test.ts',
|
|
'integration/**/*.js',
|
|
'!integration/**/*.test.js'
|
|
],
|
|
|
|
tests: [
|
|
'lib/src/**/*.test.js',
|
|
'lib/src/**/*.test.ts',
|
|
'lib/src/**/*.test.tsx',
|
|
'integration/**/*.test.js'
|
|
],
|
|
|
|
compilers: {
|
|
'**/*.js': wallaby.compilers.babel(babelOptions),
|
|
'**/*.ts?(x)': wallaby.compilers.typeScript({
|
|
module: 'commonjs',
|
|
jsx: 'React'
|
|
})
|
|
},
|
|
|
|
setup: (w) => {
|
|
w.testFramework.configure(require('./package.json').jest);
|
|
}
|
|
};
|
|
};
|