Skip to content

Commit

Permalink
chore: mock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed May 24, 2024
1 parent 886dea0 commit eb2e92f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions __mocks__/@react-native-google-signin/google-signin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export default {
GoogleSignin: {
configure: jest.fn(),
hasPlayServices: jest.fn(),
signIn: jest.fn(),
},
GoogleSigninButton: {
Color: {
Dark: jest.mock,
},
},
statusCodes: {
SIGN_IN_CANCELLED: jest.mock,
IN_PROGRESS: jest.mock,
PLAY_SERVICES_NOT_AVAILABLE: jest.mock,
},
};
11 changes: 11 additions & 0 deletions __mocks__/@supabase/supabase-js.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const createClient = jest.fn().mockReturnValue({
auth: {
signIn: jest.fn(),
signOut: jest.fn(),
},
from: jest.fn().mockReturnThis(),
select: jest.fn(),
insert: jest.fn(),
update: jest.fn(),
delete: jest.fn(),
});

0 comments on commit eb2e92f

Please sign in to comment.