PR-733704: fix tsconfig.cy.json type errors

- Remove 'cypress' from types array: Cypress ships its own types,
  not via @types/cypress — the /// <reference types="cypress" />
  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.
This commit is contained in:
2026-06-21 06:04:24 +00:00
parent df367639b9
commit 62dd7186c1

View File

@@ -1,12 +1,18 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"rootDir": ".", "rootDir": "."
"types": ["cypress", "node"]
}, },
"include": [ "include": [
"src", "src",
"cypress", "cypress",
"src/@types" "src/@types"
],
"exclude": [
"node_modules",
"dist",
"**/*.stories.*",
"**/*.test.ts",
"**/*.test.tsx"
] ]
} }