Files
orca/mobile/vitest.setup.ts
T
a803cbead8 feat(mobile): iPhone Duo key rail with D-pad, split terminal panes and half-fold layout (#35177)
Carries over #33221 and #33210. Replaces our #34484 Duo support with the community design, on top of main's rebuilt terminal key bar (#36166).

Fixes #33200

Co-authored-by: Takeshi Matsumoto <zytakeshi520@gmail.com>
Co-authored-by: Lars Keggenhoff <lars@kghf.io>
2026-10-30 16:35:12 +00:00

18 lines
536 B
TypeScript

import { vi } from 'vitest'
// Native SVG's generated components import Flow-only native subpaths outside the RN host mocks.
vi.mock('react-native-svg', () => ({
default: 'Svg',
Defs: 'Defs',
G: 'G',
LinearGradient: 'LinearGradient',
Path: 'Path',
Rect: 'Rect',
Stop: 'Stop'
}))
// The reserved-regions module is iOS-only native code; tests run as a platform without it.
vi.mock('./modules/orca-reserved-regions/src', () => ({ OrcaReservedRegions: null }))
Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true })