From 4beec2a86e3971f2581946845cca50c0f7526667 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 10 Oct 2024 17:40:48 +0300 Subject: [PATCH] Unit tests in GitHub Actions --- .github/workflows/main.yml | 2 ++ app/features/team/routes/t.$customUrl.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c3c26c0051..bbd9941626 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,5 +31,7 @@ jobs: run: npm run biome:check - name: Typecheck run: npm run typecheck + - name: Unit tests + run: npm run test:unit - name: Check translations jsons run: npm run check-translation-jsons:no-write diff --git a/app/features/team/routes/t.$customUrl.test.ts b/app/features/team/routes/t.$customUrl.test.ts index b772988da8..8c74958b8f 100644 --- a/app/features/team/routes/t.$customUrl.test.ts +++ b/app/features/team/routes/t.$customUrl.test.ts @@ -55,6 +55,8 @@ describe("Secondary teams", () => { }); it("first team created becomes main team", async () => { + await createTeamAction({ name: "Team 1" }, { user: "regular" }); + const { team, secondaryTeams } = await loadTeams(); expect(team!.name).toBe("Team 1");