Unit testing React components in Cypress without CRA and react-scripts

So you have an app or component library that you have created without and you want to unit test it using Cypress. I had to go through some hassle to get that working with a custom webpack configuration, but it’s finally working, and here is my solution.

1. Install Cypress