Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: skip migration progress during tests

Ammar Ahmed79b89c2e85e4
diff --git a/apps/mobile/app/hooks/use-app-events.tsx b/apps/mobile/app/hooks/use-app-events.tsx
index 20fb25e77..e0197bbe6 100644
--- a/apps/mobile/app/hooks/use-app-events.tsx
+++ b/apps/mobile/app/hooks/use-app-events.tsx
@@ -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({
@@ -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();