fix(testing): set correct type for ignoreTestFiles option in cypress executor (#20853)

This commit is contained in:
Leosvel Pérez Espinosa 2023-12-21 09:10:43 +01:00 committed by GitHub
parent 2374d8eaba
commit 737c75fd0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

View File

@ -106,7 +106,10 @@
},
"ignoreTestFiles": {
"aliases": ["excludeSpecPattern"],
"type": "string",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
],
"description": "A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: `{dot: true, matchBase: true}`. We suggest using https://globster.xyz to test what files would match."
},
"reporter": {

View File

@ -32,7 +32,7 @@ export interface CypressExecutorOptions extends Json {
copyFiles?: string;
ciBuildId?: string | number;
group?: string;
ignoreTestFiles?: string;
ignoreTestFiles?: string | string[];
reporter?: string;
reporterOptions?: string | Json;
skipServe?: boolean;

View File

@ -113,7 +113,17 @@
},
"ignoreTestFiles": {
"aliases": ["excludeSpecPattern"],
"type": "string",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: `{dot: true, matchBase: true}`. We suggest using https://globster.xyz to test what files would match."
},
"reporter": {