Repository navigation
Automated test suites for components #1200
Answered
by
micahjones13
Matt (MxGunderson)
asked this question in
Q&A
|
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? |
Answered by
micahjones13
Aug 2, 2023
Replies: 1 comment
|
Hey Matt (@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? |
0 replies
Answer selected by
micahjones13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Matt (@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?