test: make calendar actions testable from CLI and add integration test script
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user