forked from wix/react-native-notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
44 lines (38 loc) · 934 Bytes
/
wallaby.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);
}
};
};