3 Commits

Author SHA1 Message Date
62dd7186c1 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.
2026-06-21 06:04:24 +00:00
df367639b9 PR-733704: remove noEmit from tsconfig.cy.json
ts-loader requires TypeScript to emit output. noEmit:true was causing
"TypeScript emitted no output" errors in the Cypress webpack build.
2026-06-21 06:01:33 +00:00
9223b1e144 PR-733704: fix TypeScript errors in Cypress webpack build
Add tsconfig.cy.json that extends the main tsconfig but removes the
rootDir restriction and adds Cypress types. Point ts-loader in
webpack.cy.config.ts to this dedicated tsconfig, fixing:
- TS6059: cypress/support files outside rootDir src/components
- TS2307: missing @storybook/react-webpack5 type declarations
- TS2339: toBeInTheDocument not found (jest-dom types scope)
2026-06-21 05:59:20 +00:00