-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: sqliteai/sqlite-sync-react-native
base: main
head repository: sqliteai/sqlite-sync-react-native
compare: feat/implement-tests
- 20 commits
- 49 files changed
- 2 contributors
Commits on Mar 3, 2026
-
Configuration menu - View commit details
-
Copy full SHA for f1ceacf - Browse repository at this point
Copy the full SHA f1ceacfView commit details
Commits on Mar 6, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 38a6fad - Browse repository at this point
Copy the full SHA 38a6fadView commit details -
chore: add @testing-library/react-native for hook tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for b9816db - Browse repository at this point
Copy the full SHA b9816dbView commit details -
test: add shared mocks for native modules
Mock files for op-sqlite, NetInfo, expo-notifications, expo-secure-store, expo-task-manager, expo-constants, and expo-application. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 4091751 - Browse repository at this point
Copy the full SHA 4091751View commit details -
test: add pure function and createDatabase tests (46 tests)
- testUtils.tsx with createTestWrapper for hook tests - calculateAdaptiveSyncInterval (10 tests) - isSqliteCloudNotification (12 tests) - logger (8 tests) - pushNotificationSyncCallbacks (5 tests) - constants (2 tests) - createDatabase (9 tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 7f57f07 - Browse repository at this point
Copy the full SHA 7f57f07View commit details -
test: add core logic tests (67 tests)
- initializeSyncExtension (11 tests) - executeSync (14 tests) - backgroundSyncConfig (10 tests) - backgroundSyncRegistry (7 tests) - executeBackgroundSync (13 tests) - registerPushToken (12 tests) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 0f8638b - Browse repository at this point
Copy the full SHA 0f8638bView commit details -
test: add pushNotificationSyncTask, optionalDependencies, and context…
… hook tests (28 tests) - pushNotificationSyncTask (8 tests) - optionalDependencies (10 tests) - useSqliteDb (2 tests) - useSyncStatus (2 tests) - useSqliteSync (2 tests) - useInternalLogger (2 tests) - useTriggerSqliteSync (2 tests) - Fix react-test-renderer version to match react 19.1.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for cfe6d90 - Browse repository at this point
Copy the full SHA cfe6d90View commit details -
test: add hook tests for useSqliteExecute, useSqliteTransaction, useO…
…nTableUpdate, useInitialSync Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 99eaf44 - Browse repository at this point
Copy the full SHA 99eaf44View commit details -
test: add complex hook tests for sync manager, lifecycle, polling, pu…
…sh notifications, and reactive queries Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 524f7d7 - Browse repository at this point
Copy the full SHA 524f7d7View commit details -
test: add useDatabaseInitialization and SQLiteSyncProvider integratio…
…n tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for f78808d - Browse repository at this point
Copy the full SHA f78808dView commit details -
test: add coverage for permission fallback, auth, and config in SQLit…
…eSyncProvider Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 6e7cec3 - Browse repository at this point
Copy the full SHA 6e7cec3View commit details -
Configuration menu - View commit details
-
Copy full SHA for adcd0a3 - Browse repository at this point
Copy the full SHA adcd0a3View commit details -
fix: skip push token registration when siteId is unavailable
When cloudsync_init fails or returns no siteId, skip registerPushToken entirely instead of registering with undefined siteId. The registration will retry on next app open since hasRequestedPermissionsRef resets on mount. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 387c95d - Browse repository at this point
Copy the full SHA 387c95dView commit details
Commits on Mar 9, 2026
-
test: add Tier 1 coverage gap tests (262 total, 82.96% branches)
Add 10 targeted tests covering uncovered branches: - useDatabaseInitialization: empty name, empty tables, close errors - useSqliteExecute/Transaction: non-Error thrown value wrapping - useSqliteSyncQuery: debounce timer clearing on query change - usePushNotificationSync: registerPushToken failure handling - isSqliteCloudNotification: Android dataString wrong URI - useSyncManager: push-mode error skips interval recalculation
Configuration menu - View commit details
-
Copy full SHA for 29ec55b - Browse repository at this point
Copy the full SHA 29ec55bView commit details -
test: add Tier 2 coverage gap tests (272 total, 85.47% branches)
Add 10 targeted tests covering additional uncovered branches: - logger: default parameter (debug=false) branch - useNetworkListener: null isInternetReachable/isConnected coercion - useAdaptivePollingSync: interval-to-null stops scheduling - useOnTableUpdate: empty rows returns null row - useSyncManager: Android with null isInternetReachable - initializeSyncExtension: empty rows, site_id logging branches - useSqliteSyncQuery: stale subscription signature skip
Configuration menu - View commit details
-
Copy full SHA for 34f43b5 - Browse repository at this point
Copy the full SHA 34f43b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c87fdb - Browse repository at this point
Copy the full SHA 7c87fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38491da - Browse repository at this point
Copy the full SHA 38491daView commit details -
fix: correct push token registration auth header and base URL
- Change auth header from Bearer connectionString?apikey=key to Bearer apiKey - Update base URL to cloudsync-staging-testing.fly.dev - Remove unused connectionString param from registerPushToken
Configuration menu - View commit details
-
Copy full SHA for 39f2073 - Browse repository at this point
Copy the full SHA 39f2073View commit details -
fix: resolve TypeScript errors across test files
Add jest and node types to tsconfig.json, fix missing required fields (syncMode, siteId, createTableSql) in test mocks, correct adaptive config field names, and prefix unused variables with underscore.
Configuration menu - View commit details
-
Copy full SHA for 09e341f - Browse repository at this point
Copy the full SHA 09e341fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6847368 - Browse repository at this point
Copy the full SHA 6847368View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...feat/implement-tests