Skip to content

Commit 37d7777

Browse files
Merge pull request #390 from abhishek-lambda/AT-281
use wrap(null)
2 parents 077c1d0 + 11d8057 commit 37d7777

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)