Skip to content

Commit

Permalink
feat(testing): support cypress reporterOptions as objects
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens committed May 24, 2023
1 parent 56c7d38 commit 50f685c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/generated/packages/cypress/executors/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
"description": "The reporter used during cypress run."
},
"reporterOptions": {
"type": "string",
"description": "The reporter options used. Supported options depend on the reporter."
"oneOf": [{ "type": "string" }, { "type": "object" }],
"description": "The reporter options used. Supported options depend on the reporter. https://docs.cypress.io/guides/tooling/reporters#Reporter-Options"
},
"skipServe": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion packages/cypress/src/executors/cypress/cypress.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface CypressExecutorOptions extends Json {
group?: string;
ignoreTestFiles?: string;
reporter?: string;
reporterOptions?: string;
reporterOptions?: string | Json;
skipServe?: boolean;
testingType?: 'component' | 'e2e';
tag?: string;
Expand Down
11 changes: 9 additions & 2 deletions packages/cypress/src/executors/cypress/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,15 @@
"description": "The reporter used during cypress run."
},
"reporterOptions": {
"type": "string",
"description": "The reporter options used. Supported options depend on the reporter."
"oneOf": [
{
"type": "string"
},
{
"type": "object"
}
],
"description": "The reporter options used. Supported options depend on the reporter. https://docs.cypress.io/guides/tooling/reporters#Reporter-Options"
},
"skipServe": {
"type": "boolean",
Expand Down

0 comments on commit 50f685c

Please sign in to comment.