This PR moves the use*ContextProps() functions from ContextProvider into their own Context files. This way, the typing can be self contained within a single file, and it reduces the knowledge required for ContextProvider.
The unit tests have also been refactored so each context is tested separately from the ContextProvider (which now only tests that it creates contexts, not what the contexts do).
This PR moves the
use*ContextProps()
functions fromContextProvider
into their own Context files. This way, the typing can be self contained within a single file, and it reduces the knowledge required forContextProvider
.The unit tests have also been refactored so each context is tested separately from the
ContextProvider
(which now only tests that it creates contexts, not what the contexts do).