From 62dd7186c17b3ae7c3ee97bcb1a0df11d51c0821 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sun, 21 Jun 2026 06:04:24 +0000 Subject: [PATCH] PR-733704: fix tsconfig.cy.json type errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 'cypress' from types array: Cypress ships its own types, not via @types/cypress — the /// in support files resolves them correctly without this entry. - Exclude *.stories.* and *.test.* from the program: ts-loader does full program type-checking, pulling in stories (@storybook types unavailable) and Jest tests (@testing-library/jest-dom not in scope). These files are irrelevant to Cypress. --- tsconfig.cy.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tsconfig.cy.json b/tsconfig.cy.json index 9f36e63..b496026 100644 --- a/tsconfig.cy.json +++ b/tsconfig.cy.json @@ -1,12 +1,18 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "rootDir": ".", -"types": ["cypress", "node"] + "rootDir": "." }, "include": [ "src", "cypress", "src/@types" + ], + "exclude": [ + "node_modules", + "dist", + "**/*.stories.*", + "**/*.test.ts", + "**/*.test.tsx" ] }