-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
2,376 additions
and
5,569 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
compose/neurosynth-frontend/__mocks__/@auth0/auth0-react.ts
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,16 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useAuth0 = vi.fn().mockReturnValue({ | ||
getAccessTokenSilently: vi.fn().mockImplementation(() => { | ||
return Promise.resolve('test-token'); | ||
}), | ||
loginWithPopup: vi.fn(), | ||
logout: vi.fn(), | ||
isAuthenticated: false, | ||
isLoading: false, | ||
user: { | ||
sub: 'some-github-user', | ||
}, | ||
}); | ||
|
||
export { useAuth0 }; |
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,7 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useSnackbar = vi.fn().mockReturnValue({ | ||
enqueueSnackbar: vi.fn(), | ||
}); | ||
|
||
export { useSnackbar }; |
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,13 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useQueryClient = vi.fn().mockReturnValue({ | ||
invalidateQueries: vi.fn(), | ||
}); | ||
|
||
const useQuery = vi.fn().mockReturnValue({ | ||
data: null, | ||
isLoading: false, | ||
isError: false, | ||
}); | ||
|
||
export { useQueryClient, useQuery }; |
7 changes: 4 additions & 3 deletions
7
...ontend/src/__mocks__/react-router-dom.tsx → ...h-frontend/__mocks__/react-router-dom.tsx
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.