Skip to content

Commit 859e6e7

Browse files
committed
fix
1 parent dd75bbc commit 859e6e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/driver/src/cypress/mocha.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ const patchRunnableClearTimeout = () => {
530530
}
531531
}
532532

533-
const patchSuiteAddTest = (specWindow, Cypress: InternalCypress.Cypress) => {
533+
const patchSuiteAddTest = (specWindow) => {
534534
Suite.prototype.addTest = function (...args) {
535535
const test = args[0]
536536

@@ -562,7 +562,7 @@ const patchSuiteAddTest = (specWindow, Cypress: InternalCypress.Cypress) => {
562562
}
563563
}
564564

565-
const patchSuiteAddSuite = (specWindow, Cypress: InternalCypress.Cypress) => {
565+
const patchSuiteAddSuite = (specWindow) => {
566566
Suite.prototype.addSuite = function (...args) {
567567
const suite = args[0]
568568

@@ -610,7 +610,7 @@ const patchRunnableResetTimeout = () => {
610610
}
611611
}
612612

613-
const patchSuiteHooks = (specWindow, Cypress: InternalCypress.Cypress) => {
613+
const patchSuiteHooks = (specWindow) => {
614614
_.each(['beforeAll', 'beforeEach', 'afterAll', 'afterEach'], (fnName) => {
615615
const _fn = Suite.prototype[fnName]
616616

@@ -675,9 +675,9 @@ const override = (specWindow, Cypress, config) => {
675675
patchRunnerRunTests()
676676
patchTestClone()
677677
createCalculateTestStatus(Cypress)
678-
patchSuiteAddTest(specWindow, Cypress)
679-
patchSuiteAddSuite(specWindow, Cypress)
680-
patchSuiteHooks(specWindow, Cypress)
678+
patchSuiteAddTest(specWindow)
679+
patchSuiteAddSuite(specWindow)
680+
patchSuiteHooks(specWindow)
681681
}
682682

683683
const create = (specWindow, Cypress, config) => {

0 commit comments

Comments
 (0)