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:
Alf Eaton
2025-03-24 10:51:00 +00:00
committed by Copybot
parent e827540a6d
commit bdcf1d3a83
6 changed files with 15 additions and 37 deletions
@@ -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,
},