Building Angular app for component tests with esbuild or reusing already built code for devServer #27034
Unanswered
mirobo
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before running component tests, the application itself is built with either the bundler 'vite' or 'webpack'. I don't see a way around this limitation at the moment.. so as an alternative I thought of this:
Is it possible to configure Cypress component testing in a way that it reuses an already built Angular application? We have multiple smaller Cypress projects in a monorepo but all these projects use the same Angular app. It would be nice if we can somehow tell Cypress to use an already existing build. The build output could be created with "ng build --watch".
But how could I tell Cypress that it doesn't need to build the app?
Beta Was this translation helpful? Give feedback.
All reactions