Skip to content

Commit

Permalink
feat(testing): add cypress migration generator to convert to plugin u…
Browse files Browse the repository at this point in the history
…sage
  • Loading branch information
Coly010 committed Apr 25, 2024
1 parent df7e40d commit 98ac92d
Show file tree
Hide file tree
Showing 17 changed files with 1,409 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/generated/manifests/menus.json
Expand Up @@ -7048,6 +7048,14 @@
"children": [],
"isExternal": false,
"disableCollapsible": false
},
{
"id": "convert-to-inferred",
"path": "/nx-api/cypress/generators/convert-to-inferred",
"name": "convert-to-inferred",
"children": [],
"isExternal": false,
"disableCollapsible": false
}
],
"isExternal": false,
Expand Down
9 changes: 9 additions & 0 deletions docs/generated/manifests/nx-api.json
Expand Up @@ -545,6 +545,15 @@
"originalFilePath": "/packages/cypress/src/generators/migrate-to-cypress-11/schema.json",
"path": "/nx-api/cypress/generators/migrate-to-cypress-11",
"type": "generator"
},
"/nx-api/cypress/generators/convert-to-inferred": {
"description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`.",
"file": "generated/packages/cypress/generators/convert-to-inferred.json",
"hidden": false,
"name": "convert-to-inferred",
"originalFilePath": "/packages/cypress/src/generators/convert-to-inferred/schema.json",
"path": "/nx-api/cypress/generators/convert-to-inferred",
"type": "generator"
}
},
"path": "/nx-api/cypress"
Expand Down
9 changes: 9 additions & 0 deletions docs/generated/packages-metadata.json
Expand Up @@ -537,6 +537,15 @@
"originalFilePath": "/packages/cypress/src/generators/migrate-to-cypress-11/schema.json",
"path": "cypress/generators/migrate-to-cypress-11",
"type": "generator"
},
{
"description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`.",
"file": "generated/packages/cypress/generators/convert-to-inferred.json",
"hidden": false,
"name": "convert-to-inferred",
"originalFilePath": "/packages/cypress/src/generators/convert-to-inferred/schema.json",
"path": "cypress/generators/convert-to-inferred",
"type": "generator"
}
],
"githubRoot": "https://github.com/nrwl/nx/blob/master",
Expand Down
@@ -0,0 +1,30 @@
{
"name": "convert-to-inferred",
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
"schema": {
"$schema": "https://json-schema.org/schema",
"$id": "NxCypressConvertToInferred",
"description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`.",
"title": "Convert Cypress project from executor to plugin",
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The project to convert from using the `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`.",
"x-priority": "important"
},
"skipFormat": {
"type": "boolean",
"description": "Whether to format files at the end of the migration.",
"default": false
}
},
"presets": []
},
"description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`.",
"implementation": "/packages/cypress/src/generators/convert-to-inferred/convert-to-inferred.ts",
"aliases": [],
"hidden": false,
"path": "/packages/cypress/src/generators/convert-to-inferred/schema.json",
"type": "generator"
}
1 change: 1 addition & 0 deletions docs/shared/reference/sitemap.md
Expand Up @@ -372,6 +372,7 @@
- [configuration](/nx-api/cypress/generators/configuration)
- [component-configuration](/nx-api/cypress/generators/component-configuration)
- [migrate-to-cypress-11](/nx-api/cypress/generators/migrate-to-cypress-11)
- [convert-to-inferred](/nx-api/cypress/generators/convert-to-inferred)
- [detox](/nx-api/detox)
- [documents](/nx-api/detox/documents)
- [Overview](/nx-api/detox/documents/overview)
Expand Down
5 changes: 5 additions & 0 deletions packages/cypress/generators.json
Expand Up @@ -32,6 +32,11 @@
"factory": "./src/generators/migrate-to-cypress-11/migrate-to-cypress-11#migrateCypressProject",
"schema": "./src/generators/migrate-to-cypress-11/schema.json",
"description": "Migrate existing Cypress e2e projects to Cypress v11"
},
"convert-to-inferred": {
"factory": "./src/generators/convert-to-inferred/convert-to-inferred",
"schema": "./src/generators/convert-to-inferred/schema.json",
"description": "Convert existing Cypress project(s) using `@nx/cypress:cypress` executor to use `@nx/cypress/plugin`."
}
}
}

0 comments on commit 98ac92d

Please sign in to comment.