setting up test functionality

This commit is contained in:
masongga
2026-05-23 16:47:42 -06:00
parent 2ad9e42f3f
commit 94dbd18946
27 changed files with 1451 additions and 230 deletions

9
lib/app-events.ts Normal file
View File

@@ -0,0 +1,9 @@
export const HABIT_PET_DATA_UPDATED_EVENT = "habit-pet-data-updated";
export function notifyHabitPetDataUpdated() {
if (typeof window === "undefined") {
return;
}
window.dispatchEvent(new Event(HABIT_PET_DATA_UPDATED_EVENT));
}