Replies: 1 comment
-
Also, the auto-generated file
which is quite misleading IMO. (since the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For a standalone cypress install, there is a support.js file which is always loaded before tests. Plugins often provide custom commands, which are imported through this file.
Recently I received a bug report for my own plugin cypress-ntlm-auth. The user had installed cypress for an Angular project using the @cypress/schematic. The tests could not identify the commands from my plugin. After investigating I found that the support file was disabled, by setting
supportFile: false
in the cypress.config.ts file. And apparently this is the default value, set by the schematic:cypress/npm/cypress-schematic/src/schematics/ng-add/files-core/cypress.config.ts.template
Line 7 in 6ee305b
Is there a motivation why the support file is disabled by default? I noticed that with the schematic, there is a support directory created, with files in place for implementing custom commands. But those won't work at all due to the flag.
Beta Was this translation helpful? Give feedback.
All reactions