Skip to content

Commit 11d8057

Browse files
use wrap(null)
1 parent 95a0446 commit 11d8057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accessibility/scanner/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const performModifiedScan = (originalFn, Subject, stateType, ...args) => {
2020

2121
const runCustomizedCommand = () => {
2222
if (!Subject) {
23-
const cypressCommandSubject = cy.subject?.();
23+
const cypressCommandSubject = cy.subject?.() || cy.wrap(null);
2424
customChaining.then(() => cypressCommandSubject).then(() => originalFn(...args));
2525
} else {
2626
const timeoutArg = args.find(arg => arg?.timeout)?.timeout;

0 commit comments

Comments
 (0)