Pass version number to plugin. (#7925)

This commit is contained in:
Kukhyeon Heo
2020-07-22 14:23:54 +09:00
committed by GitHub
parent 3c9938dba5
commit cb4deee8d1
8 changed files with 27 additions and 2 deletions
+4
View File
@@ -2526,6 +2526,10 @@ declare namespace Cypress {
* Absolute path to the root of the project
*/
projectRoot: string
/**
* Cypress version.
*/
version: string
}
interface DebugOptions {
+1
View File
@@ -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