1 | "use strict";
|
2 | var __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 | };
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | const jest = __importStar(require("jest"));
|
11 | const path = __importStar(require("path"));
|
12 | require("../injectors/test");
|
13 | const paths_1 = require("../lib/paths");
|
14 | const createJestConfig_1 = require("./util/createJestConfig");
|
15 | const argv = process.argv.slice(2);
|
16 | if (!process.env.CI &&
|
17 | argv.indexOf('--coverage') === -1 &&
|
18 | argv.indexOf('--watchAll') === -1) {
|
19 | argv.push('--watch');
|
20 | }
|
21 | argv.push('--config', JSON.stringify(createJestConfig_1.createJestConfig(path.resolve(paths_1.paths.appSrc, '..'), (relativePath) => path.resolve(__dirname, '..', relativePath))));
|
22 | jest.run(argv);
|
23 |
|
\ | No newline at end of file |