UNPKG

@nx/jest

Version:

The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.

11 lines (10 loc) 427 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkForTestTarget = checkForTestTarget; const devkit_1 = require("@nx/devkit"); function checkForTestTarget(tree, options) { const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, options.project); if (projectConfig?.targets?.test) { throw new Error(`${options.project}: already has a test target set.`); } }