diff --git a/cli/types/tests/kitchen-sink.ts b/cli/types/tests/kitchen-sink.ts index 4a1bbfa5b3..3ddfc03f9a 100644 --- a/cli/types/tests/kitchen-sink.ts +++ b/cli/types/tests/kitchen-sink.ts @@ -178,3 +178,7 @@ cy.window().then(window => { window.eval('1') }) + +const a = 1 +// $ExpectError +a.should("be.visible") diff --git a/patches/@types+chai+4.2.15.patch b/patches/@types+chai+4.2.15.patch new file mode 100644 index 0000000000..ce37005eb6 --- /dev/null +++ b/patches/@types+chai+4.2.15.patch @@ -0,0 +1,16 @@ +diff --git a/node_modules/@types/chai/index.d.ts b/node_modules/@types/chai/index.d.ts +index da5992c..67bafac 100644 +--- a/node_modules/@types/chai/index.d.ts ++++ b/node_modules/@types/chai/index.d.ts +@@ -1949,6 +1949,8 @@ declare module "chai" { + export = chai; + } + +-interface Object { +- should: Chai.Assertion; +-} ++// const a = 1; a.should(1); doesn't work with Cypress ++// https://github.com/cypress-io/cypress/issues/16548 ++// interface Object { ++// should: Chai.Assertion; ++// }