mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Convert GitHub Sync tests to Cypress (#24228)
* Use OError * Remove setTimeout stub * Convert GitHub Sync tests to Cypress * Use setIgnoringExternalUpdates directly * Migrate remaining GitHub Sync components to TypeScript GitOrigin-RevId: 7c8b875b9a7bbf6353d87a5f93c2267d1d4bc65d
This commit is contained in:
@@ -21,7 +21,7 @@ import useEventListener from '@/shared/hooks/use-event-listener'
|
||||
export const ReferencesContext = createContext<
|
||||
| {
|
||||
referenceKeys: Set<string>
|
||||
indexAllReferences: (shouldBroadcast: boolean) => void
|
||||
indexAllReferences: (shouldBroadcast: boolean) => Promise<void>
|
||||
}
|
||||
| undefined
|
||||
>(undefined)
|
||||
@@ -38,8 +38,8 @@ export const ReferencesProvider: FC = ({ children }) => {
|
||||
>({})
|
||||
|
||||
const indexAllReferences = useCallback(
|
||||
(shouldBroadcast: boolean) => {
|
||||
postJSON(`/project/${projectId}/references/indexAll`, {
|
||||
async (shouldBroadcast: boolean) => {
|
||||
return postJSON(`/project/${projectId}/references/indexAll`, {
|
||||
body: {
|
||||
shouldBroadcast,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user