Testing with a Context object #4300
aantia
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There are a couple of issues requesting that the Context class be exported for writing tests that need a Context as input: #4195, #3988.
Here's a simple workaround:
Here's a fuller example (using the app factory pattern so that the type of my context matches the expected input of the function being tested):
Beta Was this translation helpful? Give feedback.
All reactions