Open ddanielsantos opened 1 year ago
Maybe cypress isn't the way to go
We can test more easily by unit testing the lib functions and using react-testing-library in the built-in components
But without Cypress we can't test navigation, the final testing setup can be a mix of those 3 strategies
react-testing-lib works for built-in components, but it isn't the right tool for Astro components.
the Astro team is planning some API to render components individually, this can lead to a proper tool for Astro component testing.
the only place that astro-deck actually needs to test a Astro component is the slide-wrapper layout, but its implementation isn't stable right now and may change to a react component (because we need to support slide gestures)
now, we also need to test the CLI, integration tests would be cool
basic config for CLI testing added at #68
Lib
Built-in components
Navigation