mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2026-07-04 06:11:20 -06:00
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:
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user