mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-11 17:50:01 -06:00
fix: Add typing for specType field on spec method (#8256)
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
This commit is contained in:
10
cli/types/cypress.d.ts
vendored
10
cli/types/cypress.d.ts
vendored
@@ -107,6 +107,14 @@ declare namespace Cypress {
|
||||
fromAutWindow: WindowPosition & { x: number, y: number }
|
||||
}
|
||||
|
||||
/**
|
||||
* Spec type for the given test. "integration" is the default, but
|
||||
* tests run using experimentalComponentTesting will be "component"
|
||||
*
|
||||
* @see https://on.cypress.io/experiments
|
||||
*/
|
||||
type CypressSpecType = "integration" | "component"
|
||||
|
||||
/**
|
||||
* Window type for Application Under Test(AUT)
|
||||
*/
|
||||
@@ -221,6 +229,7 @@ declare namespace Cypress {
|
||||
// name: "config_passing_spec.coffee",
|
||||
// relative: "cypress/integration/config_passing_spec.coffee",
|
||||
// absolute: "/users/smith/projects/web/cypress/integration/config_passing_spec.coffee"
|
||||
// specType: "integration"
|
||||
// }
|
||||
```
|
||||
*/
|
||||
@@ -229,6 +238,7 @@ declare namespace Cypress {
|
||||
relative: string // "cypress/integration/config_passing_spec.coffee" or "__all" if clicked all specs button
|
||||
absolute: string
|
||||
specFilter?: string // optional spec filter used by the user
|
||||
specType?: CypressSpecType
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user