-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YOMA-485 - feat(User): fetch credential data (#90)
* feat(User): adding get user credentials middleware and actions, fixing some package requirements * chore: adding help.json description for reset command * refactor(User): adding middleware for fetching user credentials * refactor(User,App, Auth): adding middleware and actions to ensure the credential data is fetched on user auth * chore: removing unused import * feat(App, Auth): adding tests for new middleware and test mocks * tests: huge fights getting this to work... but working now. Had to refactor the way we're passing the FB/Google svg as the test suite was moaning. * tests: moving mocks to jest setup file * tests: renaming jestSetup and adding to jest.ui file * tests: renaming jestSetup and adding to jest.ui file * refactor(App, Auth): adding tests, renaming action/middleware to hydrateApp(Flow) * refactor(User): working on Api call to get successful response * chore(User): fixing middleware/test linting issues * refactor(api): adding console log of errors for Dev only, adding a type for the credential type options, updating selector tests to use rootStateFixture * tests: adding tests for selectUserId, and fixing rootStateFixture util * tests: fixing createFixture util to fallback to {} if override not set, moving UserResponse type to the User module, as well as the USER_RESPONSE mock to the user test fixtures * chore: updating scripts for linting, removing unused imports * tests: refactoring User selector tests - so that it's ordered in the same order as teh selector file * chore: updating package-lock * refactor(User): rolling back unnecesary changes, renamed selectUserId to selectId
- Loading branch information
1 parent
24eae71
commit 991e236
Showing
44 changed files
with
446 additions
and
24,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const googleSignIn = jest.mock('@react-native-google-signin/google-signin', () => ({})) | ||
const googleSignIn = jest.mock('@react-native-google-signin/google-signin', () => ({ GoogleSignIn: jest.fn() })) | ||
|
||
module.exports = googleSignIn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const LoginMananger = { logInWithPermissions: jest.fn() } | ||
export { LoginMananger } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default jest.fn() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.