devkit icon indicating copy to clipboard operation
devkit copied to clipboard

it.skip is not a function

Open srqdeveloper opened this issue 2 years ago • 0 comments

When attempting to import '@jscutlery/cypress-harness/support' into our Cypress support file and then running a Cypress suite containing it.skip(...), we get the following error: it.skip is not a function

An outstanding issue for Angular was described here: https://github.com/angular/angular/issues/46297

Since the bug was not getting much movement from the Angular team, Cypress released this fix. In the interim, adding globalThis.it.skip = globalThis.xit; after our import '@jscutlery/cypress-harness/support'; seems to serve as a workaround for us.

Whether a PR is opened to patch the issue here or someone comes across this bug, I hope this helps.

srqdeveloper avatar Nov 18 '22 00:11 srqdeveloper