Skip to content

Commit 7131786

Browse files
Update support.js
1 parent a07e236 commit 7131786

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

support.js

+4
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ const registerHooks = () => {
7171
// because we don't control the cross-origin code, we can safely return
7272
let applicationSourceCoverage
7373
try {
74+
// Note that we are purposefully not supporting the optional chaining syntax here to
75+
// support a wide range of projects (some of which are not set up to support the optional
76+
// chaining syntax due to current Cypress limitations). See:
77+
// https://github.com/cypress-io/cypress/issues/20753
7478
if (win) {
7579
applicationSourceCoverage = win.__coverage__
7680
}

0 commit comments

Comments
 (0)