forked from TheBrainFamily/TheBrain2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby-web.js
32 lines (31 loc) · 944 Bytes
/
wallaby-web.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
process.env.BABEL_ENV="test"
process.env.ENZYME=true
process.env.NODE_ENV="TESTING"
module.exports = (wallaby) => {
return {
debug: true,
testFramework: 'jest',
files: [
'client/src/**/*.js',
'client/tests/testHelpers/**/*.js',
'!client/src/**/*.test.js',
'server/src/**/*.js',
'!server/src/**/*.spec.js',
'cypress/integration/pageObjects/*.js',
'testing/testHelpers/**/*.js',
'clientEnzymeTest.json'
],
tests: [
'cypress/integration/landingPage.test.js',
],
compilers: {'**/*.js': wallaby.compilers.babel()},
env: {type: 'node'},
setup: function (wallaby) {
const jestConfig = require('./clientEnzymeTest');
jestConfig.moduleDirectories = [
'node_modules', '<rootDir>/server/node_modules', '<rootDir>/client/node_modules'
];
wallaby.testFramework.configure(jestConfig);
}// --config ./clientEnzymeTest.json
}
};