UNPKG

@nx/jest

Version:

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

16 lines (15 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JEST_EXECUTOR_DEPRECATION_MESSAGE = void 0; exports.warnJestExecutorDeprecation = warnJestExecutorDeprecation; exports.warnJestExecutorGenerating = warnJestExecutorGenerating; const devkit_1 = require("@nx/devkit"); // TODO(v24): Remove the @nx/jest:jest executor. The inferred plugin // (@nx/jest/plugin) and the convert-to-inferred generator stay supported. exports.JEST_EXECUTOR_DEPRECATION_MESSAGE = 'The `@nx/jest:jest` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/jest:convert-to-inferred` to migrate to the `@nx/jest/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.'; function warnJestExecutorDeprecation() { devkit_1.logger.warn(exports.JEST_EXECUTOR_DEPRECATION_MESSAGE); } function warnJestExecutorGenerating() { devkit_1.logger.warn('Generating a target that uses the deprecated `@nx/jest:jest` executor. The executor will be removed in Nx v24. Run `nx g @nx/jest:convert-to-inferred` next to migrate this target to the `@nx/jest/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.'); }