jest-preset-angular
Version:
Jest preset configuration for Angular projects
11 lines (10 loc) • 525 B
JavaScript
;
const tslib_1 = require("tslib");
const ngcc_jest_processor_1 = require("../utils/ngcc-jest-processor");
module.exports = () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
const ngJestConfig = globalThis.ngJest;
const tsconfig = ngJestConfig === null || ngJestConfig === void 0 ? void 0 : ngJestConfig.tsconfig;
if (!(ngJestConfig === null || ngJestConfig === void 0 ? void 0 : ngJestConfig.skipNgcc)) {
(0, ngcc_jest_processor_1.runNgccJestProcessor)(tsconfig);
}
});