UNPKG

979 BJavaScriptView Raw
1"use strict";
2var __importStar = (this && this.__importStar) || function (mod) {
3 if (mod && mod.__esModule) return mod;
4 var result = {};
5 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6 result["default"] = mod;
7 return result;
8};
9Object.defineProperty(exports, "__esModule", { value: true });
10const jest = __importStar(require("jest"));
11const path = __importStar(require("path"));
12require("../injectors/test");
13const paths_1 = require("../lib/paths");
14const createJestConfig_1 = require("./util/createJestConfig");
15const argv = process.argv.slice(2);
16if (!process.env.CI &&
17 argv.indexOf('--coverage') === -1 &&
18 argv.indexOf('--watchAll') === -1) {
19 argv.push('--watch');
20}
21argv.push('--config', JSON.stringify(createJestConfig_1.createJestConfig(path.resolve(paths_1.paths.appSrc, '..'), (relativePath) => path.resolve(__dirname, '..', relativePath))));
22jest.run(argv);
23//# sourceMappingURL=test.js.map
\No newline at end of file