feat: přidání testů – Jest unit testy + Playwright E2E + CI pipeline #54

Merged
batmanisko merged 23 commits from feat/tests into master 2026-04-30 00:49:40 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 70ed59ab9d - Show all commits
-1
View File
@@ -1,5 +1,4 @@
import { test, expect } from '@playwright/test';
import { clearPizzaDay } from './helpers';
test.beforeEach(async ({ page, request }) => {
// Vyčistíme volby dne, aby testy neovlivnily navzájem
+2 -1
View File
@@ -141,8 +141,9 @@ router.post("/clear", async (req: Request<{}, any, any>, res, next) => {
const dateKey = formatDate(date);
const data = await storage.getData<any>(dateKey);
// Vymažeme všechny volby
// Vymažeme všechny volby i aktivní pizza day
data.choices = {};
delete data.pizzaDay;
await storage.setData(dateKey, data);