UNPKG

@nx/detox

Version:

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

22 lines (21 loc) 1.81 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE = void 0; exports.warnDetoxExecutorsDeprecation = warnDetoxExecutorsDeprecation; exports.warnDetoxExecutorsGenerating = warnDetoxExecutorsGenerating; const devkit_1 = require("@nx/devkit"); // TODO(v24): Remove the @nx/detox:build and @nx/detox:test executors and the // convert-to-inferred generator. The inferred plugin (@nx/detox/plugin) and // the application/init generators stay supported. exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE = '`@nx/detox:build` and `@nx/detox:test` are deprecated and will be removed in Nx v24. Run `nx g @nx/detox:convert-to-inferred` to migrate to the `@nx/detox/plugin` inferred targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.'; function warnDetoxExecutorsDeprecation() { devkit_1.logger.warn(exports.DETOX_EXECUTORS_DEPRECATION_MESSAGE); } // Fired when the @nx/detox:application generator is about to generate // build-ios/test-ios/build-android/test-android targets that use the deprecated // executors — i.e. when @nx/detox/plugin isn't registered in nx.json. Surfaces // the deprecation at generation time rather than only when the user later runs // the generated targets. function warnDetoxExecutorsGenerating() { devkit_1.logger.warn('Generating `build-ios`, `test-ios`, `build-android`, and `test-android` targets that use the deprecated `@nx/detox:build` and `@nx/detox:test` executors. These executors will be removed in Nx v24. Run `nx g @nx/detox:convert-to-inferred` next to migrate these targets to the `@nx/detox/plugin` inferred plugin and prevent future generators from emitting executor targets. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.'); }