Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cypress/TypeScript/VSCode integration #69

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

yndajas
Copy link
Contributor

@yndajas yndajas commented Jun 14, 2023

Context

After running various updates today (macOS and brew formulae and casks), I started seeing a few errors in the integration_tests folder:

  • in integration_tests/tsconfig.json, TS2688: Cannot find type definition file for 'cypress' and Cannot find type definition file for 'express-session'
  • in integration_tests/**/*.ts, TS2304: Cannot find name 'cy' and Cannot find name with various other Cypress-related objects

Changes in this PR

The typeRoots change fixes the former, while the include change fixes the latter. This was hard to debug, but the following helped:

After running various updates today (macOS and brew formulae and casks),
I started seeing a few errors in the `integration_tests` folder:
- in `integration_tests/tsconfig.json`, TS2688: `Cannot find type
  definition file for 'cypress'` and `Cannot find type definition file
  for 'express-session'`
- in `integration_tests/**/*.ts`, TS2304: `Cannot find name 'cy'` and
  `Cannot find name` with various other Cypress-related objects

The `typeRoots` change fixes the former, while the `include` change
fixes the latter. This was hard to debug, but the following helped:
- https://stackoverflow.com/a/53938729/4002016 (I think - as well as
  the Approved Premises config)
- cypress-io/cypress#1152 (comment)
@yndajas yndajas requested a review from Gweaton June 14, 2023 15:48
@yndajas yndajas merged commit b67c58f into main Jun 14, 2023
@yndajas yndajas deleted the fix-cypress-typescript-integration branch June 14, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants