Replies: 1 comment
-
I like Next's Testing page, as a reference/example.
Additionally, it might be necessary to address unit testing for There is an existing unit testing example here with astro-component-tester: https://github.com/astro-community/component-template/blob/main/test/example.test.js I think (imo/cmiiw) people who are highly experienced in testing might be able to figure things out on their own, so this page is targeted more towards devs with beginner to intermediate testing skills. |
Beta Was this translation helpful? Give feedback.
-
One thing our team have been struggling with is testing Astro components well, and it currently feels like a big gap in the documentation.
It would be good to get some docs on setting up test runners to test Astro components and no guidance on how to unit test the code block and templates.
For render testing, possibly some docs for setting up something like Cypress?
What are the best practices for testing and for mocking?
Beta Was this translation helpful? Give feedback.
All reactions