mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 15:39:28 -05:00
chore: fix ExpectType assertions (#20395)
* chore: fix assertions * fix ExpectType for config.baseUrl
This commit is contained in:
@@ -6,15 +6,15 @@ const pluginConfig: Cypress.PluginConfig = (on, config) => {}
|
||||
// allows synchronous returns
|
||||
const pluginConfig2: Cypress.PluginConfig = (on, config) => {
|
||||
config // $ExpectType PluginConfigOptions
|
||||
config.baseUrl // $ExpectType: string
|
||||
config.configFile // $ExpectType: string | false
|
||||
config.fixturesFolder // $ExpectType: string | false
|
||||
config.pluginsFile // $ExpectType: string | false
|
||||
config.screenshotsFolder // $ExpectType: string | false
|
||||
config.videoCompression // $ExpectType: number | false
|
||||
config.projectRoot // $ExpectType: string
|
||||
config.version // $ExpectType: string
|
||||
config.testingType // $ExpectType: TestingType
|
||||
config.baseUrl // $ExpectType string | null
|
||||
config.configFile // $ExpectType string | false
|
||||
config.fixturesFolder // $ExpectType string | false
|
||||
config.pluginsFile // $ExpectType string | false
|
||||
config.screenshotsFolder // $ExpectType string | false
|
||||
config.videoCompression // $ExpectType number | false
|
||||
config.projectRoot // $ExpectType string
|
||||
config.version // $ExpectType string
|
||||
config.testingType // $ExpectType TestingType
|
||||
|
||||
on('before:browser:launch', (browser, options) => {
|
||||
browser.displayName // $ExpectType string
|
||||
|
||||
Reference in New Issue
Block a user