Skip to content

Commit

Permalink
Unit tests in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sendouc committed Oct 10, 2024
1 parent 7cff3d2 commit 4beec2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions app/features/team/routes/t.$customUrl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4beec2a

Please sign in to comment.