mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-03 05:20:38 -05:00
Pass version number to plugin. (#7925)
This commit is contained in:
Vendored
+4
@@ -2526,6 +2526,10 @@ declare namespace Cypress {
|
||||
* Absolute path to the root of the project
|
||||
*/
|
||||
projectRoot: string
|
||||
/**
|
||||
* Cypress version.
|
||||
*/
|
||||
version: string
|
||||
}
|
||||
|
||||
interface DebugOptions {
|
||||
|
||||
@@ -13,6 +13,7 @@ const pluginConfig2: Cypress.PluginConfig = (on, config) => {
|
||||
config.screenshotsFolder // $ExpectType: string | false
|
||||
config.videoCompression // $ExpectType: number | false
|
||||
config.projectRoot // $ExpectType: string
|
||||
config.version // $ExpectType: string
|
||||
|
||||
on('before:browser:launch', (browser, options) => {
|
||||
browser.displayName // $ExpectType string
|
||||
|
||||
Reference in New Issue
Block a user