Merge branch 'develop' into cache-sessions

This commit is contained in:
Emily Rohrbough
2022-09-22 15:05:28 -05:00
committed by GitHub
134 changed files with 3333 additions and 2029 deletions

View File

@@ -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
}