forked from TheBrainFamily/TheBrain2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby-mobile.js
31 lines (30 loc) · 863 Bytes
/
wallaby-mobile.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
process.env.BABEL_ENV = "test"
process.env.ENZYME = true
process.env.NODE_ENV = "TESTING"
module.exports = (wallaby) => {
return {
debug: true,
testFramework: 'jest',
files: [
'mobileClient/**/*.js',
'!mobileClient/node_modules/**',
'server/src/**/*.js',
'!server/src/**/*.spec.js',
'testing/testHelpers/**/*.js',
'testingMobile/**/*.snap'
],
tests: [
'testingMobile/App.test.js',
],
compilers: {'**/*.js': wallaby.compilers.babel()},
env: {type: 'node'},
setup: function (wallaby) {
process.env.NODE_PATH = '';
const jestConfig = require('./package.json').jest;
jestConfig.moduleDirectories = [
'node_modules', '<rootDir>/server/node_modules', '<rootDir>/mobileClient/node_modules'
];
wallaby.testFramework.configure(jestConfig);
}
}
};