feat: allow usage of @react/plugins with cypress.config.js (#17738)

This commit is contained in:
Barthélémy Ledoux
2021-09-09 16:17:14 -05:00
committed by GitHub
parent 36be9ebea5
commit da4b1e06ce
42 changed files with 405 additions and 134 deletions
+2 -2
View File
@@ -5263,7 +5263,7 @@ declare namespace Cypress {
tag?: string
}
interface DevServerOptions {
interface DevServerConfig {
specs: Spec[]
config: ResolvedConfigOptions & RuntimeConfigOptions
devServerEvents: NodeJS.EventEmitter
@@ -5282,7 +5282,7 @@ declare namespace Cypress {
(action: 'before:spec', fn: (spec: Spec) => void | Promise<void>): void
(action: 'before:browser:launch', fn: (browser: Browser, browserLaunchOptions: BrowserLaunchOptions) => void | BrowserLaunchOptions | Promise<BrowserLaunchOptions>): void
(action: 'file:preprocessor', fn: (file: FileObject) => string | Promise<string>): void
(action: 'dev-server:start', fn: (file: DevServerOptions) => Promise<ResolvedDevServerConfig>): void
(action: 'dev-server:start', fn: (file: DevServerConfig) => Promise<ResolvedDevServerConfig>): void
(action: 'task', tasks: Tasks): void
}