mobile: skip migration progress during tests

This commit is contained in:
Ammar Ahmed
2024-12-24 14:10:11 +05:00
parent ceb2a8c747
commit 79b89c2e85

View File

@@ -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();