- Create __mocks__/ with react-native, expo-router, expo-constants, expo-status-bar, react-native-mmkv, @testing-library/react-native - Update vitest.config.ts with resolve aliases for all native modules - Add AuthScreen smoke test (3 tests) - Add HomeScreen smoke test (2 tests) - Add @types/react-test-renderer dev dependency - Total: 32 passing tests (27 store + 5 component)
9 lines
186 B
TypeScript
9 lines
186 B
TypeScript
/**
|
|
* Minimal expo-status-bar mock for Vitest.
|
|
*/
|
|
import React from 'react';
|
|
|
|
export function StatusBar(_props: Record<string, unknown>) {
|
|
return React.createElement('StatusBar');
|
|
}
|