Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
Overview
This PR creates a ServicesContext which is able to provide instances of service classes to child components via a dependency injection container. Additionally, it defines an AbstractUserService class and a partial implementation of this class--LocalUserService--for other developers to complete, and updates the User model to more accurately reflect the player stories regarding contributing to challengers. (see https://www.figma.com/file/0Q2tpQqi9sYcIA3ZyiX3PF/8BY8_POD_Jul30 - Mocks, December Version, US3 - US7).
Test Plan
Unit tests have been implemented for the ServicesContextProvider and the servicesContainer. The LocalUserService is currently added to the
coveragePathIgnorePatterns
array injest.config.mjs
and must be removed from this array once it is fully implemented. In order to test the ServicesContextProvider,getProvidedContextValue()
was added totesting-utils
.Follow ups
The
LocalUserService
class must be implemented and tested. Once this is implemented,UserContextProvider
should also be tested.