From Easy Custom Webpack Setup for React.js Applications repository JscramblerBlog/Jscrambler-Webpack-React
Example of component testing using Cypress v4.5.0 and cypress-react-unit-test
See component test in src/components/Main.spec.js
The Cypress bundler is using webpack.config.js from the current project via cypress/plugins/index.js