@nxext/stencil
Version:
Nx plugin for stenciljs
17 lines • 705 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.addJest = addJest;
const tslib_1 = require("tslib");
const devkit_1 = require("@nx/devkit");
function addJest(host, options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
if (options.unitTestRunner !== 'jest') {
// eslint-disable-next-line @typescript-eslint/no-empty-function
return () => { };
}
yield (0, devkit_1.ensurePackage)('@nx/jest', devkit_1.NX_VERSION);
const { jestInitGenerator } = yield Promise.resolve().then(() => require('@nx/jest'));
return jestInitGenerator(host, {});
});
}
//# sourceMappingURL=add-jest.js.map