Skip to content

Commit

Permalink
mobile: skip migration progress during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Dec 24, 2024
1 parent ceb2a8c commit 79b89c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/mobile/app/hooks/use-app-events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ export const useAppEvents = () => {
EV.subscribe(EVENTS.migrationStarted, (name) => {
if (
name !== "notesnook" ||
!SettingsService.getProperty("introCompleted")
!SettingsService.getProperty("introCompleted") ||
Config.isTesting === "true"
)
return;
startProgress({
Expand All @@ -611,7 +612,8 @@ export const useAppEvents = () => {
EV.subscribe(EVENTS.migrationFinished, (name) => {
if (
name !== "notesnook" ||
!SettingsService.getProperty("introCompleted")
!SettingsService.getProperty("introCompleted") ||
Config.isTesting === "true"
)
return;
endProgress();
Expand Down

0 comments on commit 79b89c2

Please sign in to comment.