-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwallaby-mobile.js
30 lines (30 loc) · 957 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
module.exports = wallaby => ({
testFramework: "jest",
files: [
"mobile/**/*.js",
"!mobile/node_modules/**",
"server/src/**/*.js",
"server/src/**/*.graphql",
"!server/src/**/*.spec.js",
"testing/common/**/*.js",
"testing/mobile/jest.config.js",
"testing/mobile/**/*.js",
"!shared/node_modules/**/*.js",
{ pattern: "testing/mobile/**/*.test.js", ignore: true },
{ pattern: "testing/mobile/e2e/**/*.js", ignore: true }
],
tests: ["testing/mobile/integration/**/*.test.js"],
compilers: { "**/*.js": wallaby.compilers.babel() },
env: { type: "node" },
setup() {
// eslint-disable-next-line global-require
const jestConfig = require("./testing/mobile/jest.config");
delete jestConfig.rootDir;
jestConfig.moduleDirectories = [
"node_modules",
"<rootDir>/server/node_modules",
"<rootDir>/mobile/node_modules"
];
wallaby.testFramework.configure(jestConfig);
}
});