benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
184 stars 28 forks source link

Set up Cypress for testing #431

Open benwiley4000 opened 4 years ago

benwiley4000 commented 4 years ago

In #35 I was thinking Jest was the way to go for testing but given 1. our dependency on the browser for stuff and 2. the probable need to do some end-to-end testing, I think Cypress would be a better. I just learned about https://github.com/bahmutov/cypress-react-unit-test which lets us easily mount React components with arbitrary props then run different sorts of tests on them.

It would be great for Hacktoberfest to gather some volunteers to contribute end-to-end (or other) tests for components, but setting up Cypress and making the contribution process easy is a pre-requisite.

Christine-Pinto commented 2 years ago

@benwiley4000 For the set up for cypress it would be good to have 1 simple test running. Is there a demo page where xou can run the test against it or is there a docker set up to run the test against it?