use webpack-dev-server in e2e? #19040
Unanswered
derdeka
asked this question in
Questions and Help
Replies: 2 comments
-
Hi @derdeka, I am also interested in running e2e tests without starting an external dev server. Did you manage to get it running in some way or another? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @derdeka, just to let you know, I was able to launch our "usual" dev server from the cypress config file and use it during the e2e tests:
|
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.
-
Hi,
instead of starting an additional webserver in e2e tests, i would like to use
@cypress/webpack-dev-server
to serve test pages and webpack compiled files (webpack entries) to the tests:My existing webpack configuration compiles typescript files and handles code coverage instrumentation.
As far as i understand after some debugging, the event 'dev-server:start' is only triggered when running component tests (with
cypress run-ct
orcypress open-ct
), but not in e2e tests (withcypress run
orcypress open
).dev-server:start
only for component tests but not for e2e tests?dev-server:start
also for e2e?webpack-dev-server
for e2e test?Beta Was this translation helpful? Give feedback.
All reactions