mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
test(mobile): mock react-native where the server-list feed now loads it
The merged server-list feed imports react-native's AppState, which vitest cannot parse unmocked. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
|
||||
// The desktop's server-list feed loads react-native; its timer never runs without a subscriber.
|
||||
vi.mock('react-native', () => ({}))
|
||||
import type { MobileRelayHost } from '../../../src/shared/mobile-relay-hosts-contract'
|
||||
import { applyServerWorkspaces, NO_SERVER_WORKSPACES } from './server-workspaces'
|
||||
import type { Worktree } from './workspace-list-types'
|
||||
|
||||
Reference in New Issue
Block a user