mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-09 00:30:16 -06:00
Merge branch 'develop' into cache-sessions
This commit is contained in:
16
cli/types/cypress.d.ts
vendored
16
cli/types/cypress.d.ts
vendored
@@ -641,6 +641,12 @@ declare namespace Cypress {
|
||||
*/
|
||||
off: Actions
|
||||
|
||||
/**
|
||||
* Used to import dependencies within the cy.origin() callback
|
||||
* @see https://on.cypress.io/origin
|
||||
*/
|
||||
require: (id: string) => any
|
||||
|
||||
/**
|
||||
* Trigger action
|
||||
* @private
|
||||
@@ -3008,6 +3014,7 @@ declare namespace Cypress {
|
||||
// Internal or Unlisted at server/lib/config_options
|
||||
namespace: string
|
||||
projectRoot: string
|
||||
repoRoot: string | null
|
||||
devServerPublicPathRoute: string
|
||||
cypressBinaryRoot: string
|
||||
}
|
||||
@@ -3081,18 +3088,21 @@ declare namespace Cypress {
|
||||
|
||||
type DevServerFn<ComponentDevServerOpts = any> = (cypressDevServerConfig: DevServerConfig, devServerConfig: ComponentDevServerOpts) => ResolvedDevServerConfig | Promise<ResolvedDevServerConfig>
|
||||
|
||||
type ConfigHandler<T> = T
|
||||
| (() => T | Promise<T>)
|
||||
|
||||
type DevServerConfigOptions = {
|
||||
bundler: 'webpack'
|
||||
framework: 'react' | 'vue' | 'vue-cli' | 'nuxt' | 'create-react-app' | 'next' | 'svelte'
|
||||
webpackConfig?: PickConfigOpt<'webpackConfig'>
|
||||
webpackConfig?: ConfigHandler<PickConfigOpt<'webpackConfig'>>
|
||||
} | {
|
||||
bundler: 'vite'
|
||||
framework: 'react' | 'vue' | 'svelte'
|
||||
viteConfig?: Omit<Exclude<PickConfigOpt<'viteConfig'>, undefined>, 'base' | 'root'>
|
||||
viteConfig?: ConfigHandler<Omit<Exclude<PickConfigOpt<'viteConfig'>, undefined>, 'base' | 'root'>>
|
||||
} | {
|
||||
bundler: 'webpack',
|
||||
framework: 'angular',
|
||||
webpackConfig?: PickConfigOpt<'webpackConfig'>,
|
||||
webpackConfig?: ConfigHandler<PickConfigOpt<'webpackConfig'>>,
|
||||
options?: {
|
||||
projectConfig: AngularDevServerProjectConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user