Skip to content

How to use react-aria with jest snapshot testing? #4685

Answered by reidbarber
chocnut asked this question in Q&A
Discussion options

You must be logged in to vote

Suggested by @LFDanLu in #2272 (comment):

Does wrapping your test components in a SSRProvider help? Otherwise maybe you could try mocking useId as a work around

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chocnut
Comment options

Answer selected by chocnut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants