cypress 8.5.0 → 8.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cypress.js CHANGED
@@ -70,6 +70,24 @@ const cypressModuleApi = {
70
70
  return cli.parseRunCommand(args);
71
71
  }
72
72
 
73
+ },
74
+
75
+ /**
76
+ * Provides automatic code completion for configuration in many popular code editors.
77
+ * While it's not strictly necessary for Cypress to parse your configuration, we
78
+ * recommend wrapping your config object with `defineConfig()`
79
+ * @example
80
+ * module.exports = defineConfig({
81
+ * viewportWith: 400
82
+ * })
83
+ *
84
+ * @see ../types/cypress-npm-api.d.ts
85
+ * @param {Cypress.ConfigOptions} config
86
+ * @returns {Cypress.ConfigOptions} the configuration passed in parameter
87
+ */
88
+ defineConfig(config) {
89
+ return config;
73
90
  }
91
+
74
92
  };
75
93
  module.exports = cypressModuleApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "8.5.0",
3
+ "version": "8.6.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -377,6 +377,21 @@ declare module 'cypress' {
377
377
  * Cypress does
378
378
  */
379
379
  cli: CypressCommandLine.CypressCliParser
380
+
381
+ /**
382
+ * Provides automatic code completion for configuration in many popular code editors.
383
+ * While it's not strictly necessary for Cypress to parse your configuration, we
384
+ * recommend wrapping your config object with `defineConfig()`
385
+ * @example
386
+ * module.exports = defineConfig({
387
+ * viewportWith: 400
388
+ * })
389
+ *
390
+ * @see ../types/cypress-npm-api.d.ts
391
+ * @param {Cypress.ConfigOptions} config
392
+ * @returns {Cypress.ConfigOptions} the configuration passed in parameter
393
+ */
394
+ defineConfig(config: Cypress.ConfigOptions): Cypress.ConfigOptions
380
395
  }
381
396
 
382
397
  // export Cypress NPM module interface
@@ -2992,6 +2992,7 @@ declare namespace Cypress {
2992
2992
  disableTimersAndAnimations: boolean
2993
2993
  padding: Padding
2994
2994
  scale: boolean
2995
+ overwrite: boolean
2995
2996
  onBeforeScreenshot: ($el: JQuery) => void
2996
2997
  onAfterScreenshot: ($el: JQuery, props: {
2997
2998
  path: string