fix: Add typing for specType field on spec method (#8256)

Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
This commit is contained in:
Nick Bolles
2020-08-27 01:22:58 -05:00
committed by GitHub
parent 83fa4ceb18
commit 12080dc205

View File

@@ -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
}
/**