-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Support TypeScript support and plugin files #7459
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
Comments
Confirmed in https://github.com/bahmutov/test-ts-plugins Workaround: point at plugins and support TS files explicitly from {
"pluginsFile": "cypress/plugins/index.ts",
"supportFile": "cypress/support/index.ts"
} |
@bahmutov I can confirm your workaround worked. |
The code for this is done in cypress-io/cypress#7463, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
TypeScript support files (i.e
support/commands.ts
) and plugin file (plugins/index.ts
) cause tasks and/or custom commands to not be found/registered. For example, the custom taskdb:seed
could not be registered within the cypress-realworld-app project:Converting the plugins file back to JavaScript resolved the issue, but a similar issue also exists for a
commands.ts
, which resulted in custom commands not being added:Converting the support files back to JavaScript also resolved the issue.
It should be noted that this issue did not exist with Cypress
develop
branch before and after the v4.6 release.Desired behavior:
Test code to reproduce
Reproduction (with associated commit) can be seen within this cypress-realworld-app test run: https://dashboard.cypress.io/projects/7s5okt/runs/1272/specs
Versions
Cypress v4.6
The text was updated successfully, but these errors were encountered: