The application was described in the blog post How to Create a Dark Mode Component in React. This repo is a fork with added Cypress Component tests.
- Stop CSS Animation In A Component Test
- Using Cypress Component Testing To Really Test A React Dark Mode Component
- Setup GitHub Actions To Run Cypress Component Tests, see ci.yml file
yarn install
yarn cypress open-ct
See DarkMode.spec.ct.tsx and App.spec.ct.tsx