@@ -8,18 +8,20 @@ import { registerCosmiconfigMock } from "unflakable-test-common/dist/config.js";
8
8
import { registerUnflakable } from "@unflakable/cypress-plugin" ;
9
9
import semverGte from "semver/functions/gte.js" ;
10
10
import path from "path" ;
11
+ import cypressOnFix from "cypress-on-fix" ;
11
12
12
13
/**
13
14
* @type {Cypress.ConfigOptions }
14
15
*/
15
16
export default {
16
17
component : {
17
18
/**
18
- * @param {Cypress.PluginEvents } on
19
+ * @param {Cypress.PluginEvents } baseOn
19
20
* @param {Cypress.PluginConfigOptions } config
20
21
* @returns {Promise<Cypress.PluginConfigOptions | void> | Cypress.PluginConfigOptions | void }
21
22
*/
22
- setupNodeEvents ( on , config ) {
23
+ setupNodeEvents ( baseOn , config ) {
24
+ const on = cypressOnFix ( baseOn ) ;
23
25
registerCosmiconfigMock ( ) ;
24
26
registerSimpleGitMock ( ) ;
25
27
tasks . registerTasks ( on ) ;
@@ -35,11 +37,12 @@ export default {
35
37
} ,
36
38
e2e : {
37
39
/**
38
- * @param {Cypress.PluginEvents } on
40
+ * @param {Cypress.PluginEvents } baseOn
39
41
* @param {Cypress.PluginConfigOptions } config
40
42
* @returns {Promise<Cypress.PluginConfigOptions | void> | Cypress.PluginConfigOptions | void }
41
43
*/
42
- setupNodeEvents ( on , config ) {
44
+ setupNodeEvents ( baseOn , config ) {
45
+ const on = cypressOnFix ( baseOn ) ;
43
46
registerCosmiconfigMock ( ) ;
44
47
registerSimpleGitMock ( ) ;
45
48
tasks . registerTasks ( on ) ;
0 commit comments