{"library":"expo-sqlite-mock","type":"library","category":null,"description":"A Jest mock for expo-sqlite that allows testing SQLite-dependent code without a device or emulator. Current stable version is 4.0.0, compatible with expo-sqlite (expo-sqlite >=55) and expo >=55. It replaces expo-sqlite's native calls with better-sqlite3, enabling real SQLite database operations in test environments. Supports custom database file paths via the EXPO_SQLITE_MOCK environment variable for concurrent test isolation. Differentiates from simple mocks by executing actual SQL, catching constraint errors, and integrating with ORMs like drizzle. Release cadence is tied to expo-sqlite major versions, with breaking changes on major version bumps.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install expo-sqlite-mock","imports":["jest config: setupFilesAfterEnv: ['expo-sqlite-mock/src/setup.ts']","process.env.EXPO_SQLITE_MOCK = 'path/to/test.db';","jest.clearAllMocks() or delete process.env.EXPO_SQLITE_MOCK"]},{"cmd":"yarn add expo-sqlite-mock","imports":[]},{"cmd":"pnpm add expo-sqlite-mock","imports":[]}],"homepage":"https://github.com/zfben/expo-sqlite-mock","github":"https://github.com/zfben/expo-sqlite-mock","docs":null,"changelog":null,"pypi":null,"npm":"expo-sqlite-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}