Component Commands built into angular bundle causing missing "fs" module for Plugin. #29591
Labels
CT
Issue related to component testing
stage: needs investigating
Someone from Cypress needs to look at this
Current behavior
Currently while trying to use the cypress-delete-downloads-folder Plugin for a component test (testing export to CSV button that runs in the front end of an Angular app), we are encountering an error
Cannot find module 'fs'
.When you go to start ANY component test you get this error
The
/cypress/support/component.ts
and/or/cypress/support/commands.ts
seems to be being built as part of the Angular bundle and not as part of the cypress backend bundle like it does for e2e tests (this does work correctly for e2e tests). In the linked repo you can load up and run e2e tests just fine, only the component tests fail to load.Desired behavior
Component tests should support plugins that use node modules.
Test code to reproduce
https://github.com/mprice-gcmlp/CypressPluginProblem/tree/master
Cypress Version
13.10.0
Node version
20.11.0
Operating System
Windows 11
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: