Skip to content

Commit

Permalink
docs(testing): add deprecation messages for Jest/Cypress (nrwl#14137)
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens authored Jan 4, 2023
1 parent 9193d1a commit 8c014f0
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 24 deletions.
6 changes: 3 additions & 3 deletions docs/generated/packages/cypress/executors/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
},
"headless": {
"type": "boolean",
"description": "Hide the browser instead of running headed (default for cypress run).",
"description": "Hide the browser instead of running headed.",
"default": false,
"x-deprecated": true
"x-deprecated": "Cypress runs headless by default. Use the --watch flag to control head/headless behavior instead."
},
"exit": {
"type": "boolean",
Expand Down Expand Up @@ -90,7 +90,7 @@
"copyFiles": {
"type": "string",
"description": "A regex string that is used to choose what additional integration files to copy to the dist folder.",
"x-deprecated": true
"x-deprecated": "No longer used since cypress supports typescript out of the box. If specified, it will be ignored."
},
"ciBuildId": {
"oneOf": [{ "type": "string" }, { "type": "number" }],
Expand Down
8 changes: 4 additions & 4 deletions docs/generated/packages/jest/executors/jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
"type": "string"
},
"tsConfig": {
"description": "The name of the Typescript configuration file. Set the tsconfig option in the jest config file. ",
"description": "The name of the Typescript configuration file.",
"type": "string",
"x-deprecated": true
"x-deprecated": "Use the ts-jest configuration options in the jest config file instead."
},
"setupFile": {
"description": "The name of a setup file used by Jest. (use Jest config file https://jestjs.io/docs/en/configuration#setupfilesafterenv-array)",
"description": "The name of a setup file used by Jest.",
"type": "string",
"x-deprecated": true
"x-deprecated": "Use the setupFilesAfterEnv option in the jest config file. https://jestjs.io/docs/en/configuration#setupfilesafterenv-array"
},
"bail": {
"alias": "b",
Expand Down
8 changes: 4 additions & 4 deletions docs/generated/packages/jest/generators/jest-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"skipSetupFile": {
"type": "boolean",
"description": "[Deprecated]: Skips the setup file required for angular. (Use `--setup-file`)",
"description": "Skips the setup file required for angular.",
"default": false,
"x-deprecated": true
"x-deprecated": "Use `--setup-file` instead."
},
"setupFile": {
"type": "string",
Expand Down Expand Up @@ -51,8 +51,8 @@
"babelJest": {
"type": "boolean",
"alias": "babel-jest",
"description": "Use `babel-jest` instead of `ts-jest` (Deprecated: Use `--compiler=babel` instead).",
"x-deprecated": true,
"description": "Use `babel-jest` instead of `ts-jest`.",
"x-deprecated": "Use `--compiler=babel` instead.",
"default": false
},
"skipFormat": {
Expand Down
6 changes: 6 additions & 0 deletions packages/cypress/src/executors/cypress/cypress.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export interface CypressExecutorOptions extends Json {
tsConfig?: string;
devServerTarget?: string;
headed?: boolean;
/**
* @deprecated use watch instead
**/
headless?: boolean;
exit?: boolean;
key?: string;
Expand All @@ -31,6 +34,9 @@ export interface CypressExecutorOptions extends Json {
browser?: string;
env?: Record<string, string>;
spec?: string;
/**
* @deprecated no longer used since cypress supports typescript out of the box
**/
copyFiles?: string;
ciBuildId?: string | number;
group?: string;
Expand Down
6 changes: 3 additions & 3 deletions packages/cypress/src/executors/cypress/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
},
"headless": {
"type": "boolean",
"description": "Hide the browser instead of running headed (default for cypress run).",
"description": "Hide the browser instead of running headed.",
"default": false,
"x-deprecated": true
"x-deprecated": "Cypress runs headless by default. Use the --watch flag to control head/headless behavior instead."
},
"exit": {
"type": "boolean",
Expand Down Expand Up @@ -90,7 +90,7 @@
"copyFiles": {
"type": "string",
"description": "A regex string that is used to choose what additional integration files to copy to the dist folder.",
"x-deprecated": true
"x-deprecated": "No longer used since cypress supports typescript out of the box. If specified, it will be ignored."
},
"ciBuildId": {
"oneOf": [
Expand Down
3 changes: 3 additions & 0 deletions packages/jest/src/executors/jest/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export interface JestExecutorOptions {
detectLeaks?: boolean;
jestConfig: string;
testFile?: string;
/**
* @deprecated set in the jest config file instead
**/
setupFile?: string;
bail?: boolean | number;
ci?: boolean;
Expand Down
8 changes: 4 additions & 4 deletions packages/jest/src/executors/jest/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
"type": "string"
},
"tsConfig": {
"description": "The name of the Typescript configuration file. Set the tsconfig option in the jest config file. ",
"description": "The name of the Typescript configuration file.",
"type": "string",
"x-deprecated": true
"x-deprecated": "Use the ts-jest configuration options in the jest config file instead."
},
"setupFile": {
"description": "The name of a setup file used by Jest. (use Jest config file https://jestjs.io/docs/en/configuration#setupfilesafterenv-array)",
"description": "The name of a setup file used by Jest.",
"type": "string",
"x-deprecated": true
"x-deprecated": "Use the setupFilesAfterEnv option in the jest config file. https://jestjs.io/docs/en/configuration#setupfilesafterenv-array"
},
"bail": {
"alias": "b",
Expand Down
4 changes: 2 additions & 2 deletions packages/jest/src/generators/jest-project/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ export interface JestProjectSchema {
project: string;
supportTsx?: boolean;
/**
* @deprecated
* @deprecated use setupFile instead
*/
skipSetupFile?: boolean;
setupFile?: 'angular' | 'web-components' | 'none';
skipSerializers?: boolean;
testEnvironment?: 'node' | 'jsdom' | '';
/**
* @deprecated
* @deprecated use compiler: "babel" instead
*/
babelJest?: boolean;
skipFormat?: boolean;
Expand Down
8 changes: 4 additions & 4 deletions packages/jest/src/generators/jest-project/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"skipSetupFile": {
"type": "boolean",
"description": "[Deprecated]: Skips the setup file required for angular. (Use `--setup-file`)",
"description": "Skips the setup file required for angular.",
"default": false,
"x-deprecated": true
"x-deprecated": "Use `--setup-file` instead."
},
"setupFile": {
"type": "string",
Expand Down Expand Up @@ -50,8 +50,8 @@
"babelJest": {
"type": "boolean",
"alias": "babel-jest",
"description": "Use `babel-jest` instead of `ts-jest` (Deprecated: Use `--compiler=babel` instead).",
"x-deprecated": true,
"description": "Use `babel-jest` instead of `ts-jest`.",
"x-deprecated": "Use `--compiler=babel` instead.",
"default": false
},
"skipFormat": {
Expand Down

0 comments on commit 8c014f0

Please sign in to comment.