Mocking Resource Provider in Paparazzi #1433
Answered
by
savvisingh
savvisingh
asked this question in
Q&A
-
Hi I m trying to mock the context class inside the Paparazzi so i can mock the strings, My code uses the context.getString inside my compose views and the context used inside paparazzi comes from the sdk, is there a way i can override and mock the context so that i can mock the strings. |
Beta Was this translation helpful? Give feedback.
Answered by
savvisingh
May 16, 2024
Replies: 1 comment 3 replies
-
Nothing is impossible... have a look at this hackery, and good luck 🙃 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wow this is some hack, I found more easy way to use
CompositionLocalProvider(LocalContext provides customContext) to mock the resource in compose views as my views purely compose which i m trying to screenshot