Skip to content

How to test state changes, e.g. screen rotations #333

Answered by arkivanov
Burtan asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Do you mean testing component recreation? Basically, you should create a new instance of DefaultComponentContext and therefore a new instance of your component. There are some sample tests.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Burtan
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #332 on February 27, 2023 15:45.