This PR includes unit tests for the ContextProvider to ensure that the context values and setter functions provided by DocumentContext, TransformContext, and UiContext are available for consumption as expected.
Reviewer Instructions
I made a couple updates to the ContextProvider tests based on @pauls-ai2 feedback on my initial state management PR:
Added an after cleanup function to unmount test components after use
Description
This is a subtask of https://github.com/allenai/scholar/issues/28926 and a continuation of the state management work from https://github.com/allenai/scholar/issues/28332.
This PR includes unit tests for the
ContextProvider
to ensure that the context values and setter functions provided byDocumentContext
,TransformContext
, andUiContext
are available for consumption as expected.Reviewer Instructions
I made a couple updates to the ContextProvider tests based on @pauls-ai2 feedback on my initial state management PR:
after
cleanup function to unmount test components after useexpect
statementsTesting Plan
Run all unit tests locally