test: make calendar actions testable from CLI and add integration test script

This commit is contained in:
t.indorf
2026-05-23 19:20:54 +02:00
parent 3ce5638449
commit ec3f4f933d
2 changed files with 28 additions and 4 deletions
+8 -4
View File
@@ -63,10 +63,14 @@ function formatNotdienstDate(date: Date) {
}
function revalidateCalendarAndNotdienst() {
revalidatePath("/dashboard/kalender");
revalidatePath("/dashboard/notdienst/plan");
revalidatePath("/dashboard/notdienst");
revalidatePath("/dashboard");
try {
revalidatePath("/dashboard/kalender");
revalidatePath("/dashboard/notdienst/plan");
revalidatePath("/dashboard/notdienst");
revalidatePath("/dashboard");
} catch (e) {
// Ignore if called outside Next.js context
}
}
type SwapAssignmentWithFamily = {