Join Discord
Powered by
we have a very similar setup. some packages with w...
# component-testing
h
happy-dawn-90116
06/22/2022, 7:54 AM
we have a very similar setup. some packages with webpack. it was difficult generating coverage for each of this sub packages. we wanted all source files, including untested ones, to be instrumented. moving to single cypress setup with v10.
f
fresh-doctor-14925
06/22/2022, 8:04 AM
Thanks! This is great to know. How did you handle having multiple webpack configs? From what I've seen in the examples, there's only ever one being passed in
https://docs.cypress.io/guides/component-testing/component-framework-configuration#React-with-Webpack
h
happy-dawn-90116
06/22/2022, 11:38 AM
hey Liam. we are using 1 dedicated webpack config for test runner. instead of reusing the webpack config that we use for our build generation
f
fresh-doctor-14925
06/22/2022, 11:38 AM
Oh that's a neat way of approaching it!
h
happy-dawn-90116
06/22/2022, 11:39 AM
yeah we have a messy setup :p trying to get around that. also coverage for us is a must. its still work in progress but we are going with this.
f
fresh-doctor-14925
06/22/2022, 11:40 AM
Really useful to know. Thanks!
2
Views
Previous
Next