Automated test suites for components #1200
-
I'm new to Astro UXDS and i'm trying to figure out if Astro supports automated test suites? I can't seem to find any info on this topic outside of Astro Docs, which isn't the same as Astro UXDS, will automated test suites be supported at any point, if not already? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @MxGunderson, Most testing libraries should work with our components. I'd recommend using any that allow for interaction with shadow dom since our components use that. We use playwright for our component tests internally. and also have some documentation around using React Testing Library in case that's what you're trying to use. Is there a specific testing library you want to use, or anything you'd like to see us ship out of the box for testing? |
Beta Was this translation helpful? Give feedback.
Hey @MxGunderson,
Most testing libraries should work with our components. I'd recommend using any that allow for interaction with shadow dom since our components use that. We use playwright for our component tests internally. and also have some documentation around using React Testing Library in case that's what you're trying to use. Is there a specific testing library you want to use, or anything you'd like to see us ship out of the box for testing?