mirror of
https://github.com/ruvnet/RuView.git
synced 2026-04-28 05:59:32 +00:00
- Added IosRssiService to handle synthetic RSSI data for iOS. - Created WebRssiService to simulate RSSI scanning on the web. - Defined shared types for WifiNetwork and RssiService in rssi.service.ts. - Introduced simulation service to generate synthetic sensing data. - Implemented WebSocket service for real-time data handling with reconnection logic. - Established Zustand stores for managing application state related to MAT and pose data. - Developed theme context and utility functions for consistent styling and formatting. - Added type definitions for various application entities including API responses and sensing data. - Created utility functions for color mapping and URL validation. - Configured TypeScript settings for the mobile application.
24 lines
619 B
TypeScript
24 lines
619 B
TypeScript
jest.mock('@react-native-async-storage/async-storage', () =>
|
|
require('@react-native-async-storage/async-storage/jest/async-storage-mock')
|
|
);
|
|
|
|
jest.mock('react-native-wifi-reborn', () => ({
|
|
loadWifiList: jest.fn(async () => []),
|
|
}));
|
|
|
|
jest.mock('react-native-reanimated', () =>
|
|
require('react-native-reanimated/mock')
|
|
);
|
|
|
|
jest.mock('react-native-webview', () => {
|
|
const React = require('react');
|
|
const { View } = require('react-native');
|
|
|
|
const MockWebView = (props: unknown) => React.createElement(View, props);
|
|
|
|
return {
|
|
__esModule: true,
|
|
default: MockWebView,
|
|
WebView: MockWebView,
|
|
};
|
|
});
|