Skip to content

Commit af1f701

Browse files
committed
fix
1 parent 53ca214 commit af1f701

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/driver/src/cy/commands/agents.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,8 @@ export default function (Commands, Cypress, cy, state) {
270270
}
271271

272272
const stub = function (obj, method: string, replacerFnOrValue) {
273-
let theStub = sandbox.stub.call<
274-
sinon.SinonSandbox,
275-
[obj: unknown, method: string],
276-
sinon.SinonStub<unknown[], unknown>
277-
>(sandbox, obj, method)
273+
// TODO: make the code below work with `packages/runner` type check without casting to `never`.
274+
let theStub = sandbox.stub.call(sandbox, obj, method as never)
278275

279276
// sinon 2 changed the stub signature
280277
// this maintains the 3-argument signature so it's not breaking

0 commit comments

Comments
 (0)