Skip to content

Commit

Permalink
fix: resolve Jasmine/Chai type conflict by excluding Cypress from roo…
Browse files Browse the repository at this point in the history
…t tsconfig

Include and exclude Cypress node_modules in tsconfig.json to prevent type conflicts
between Jasmine and Chai. This allows Angular spec files to use correct Jasmine
types while keeping Cypress types isolated.

The fix requires both include and exclude since you can only exclude what has
been included first.

Source: cypress-io/cypress#7552 (comment)
  • Loading branch information
alstdu committed Nov 13, 2024
1 parent a952672 commit 4bdd173
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dnd-character-tracker/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"dom"
]
},
"include": [
"src",
"node_modules/cypress"
],
"exclude": [
"node_modules/cypress"
],
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
Expand Down

0 comments on commit 4bdd173

Please sign in to comment.