Skip to content

Commit

Permalink
fix: disabled comments on every push, and added default value for cov…
Browse files Browse the repository at this point in the history
…erage
  • Loading branch information
gentlementlegen committed Mar 6, 2024
1 parent 438da50 commit 419442c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cypress-testing.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Run Cypress testing suite
on:
workflow_dispatch:
push:
branches:
- development
pull_request:
types: [ opened, synchronize ]

jobs:
cypress-run:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Run Jest testing suite
on:
workflow_dispatch:
push:
branches:
- development
pull_request:
types: [ opened, synchronize ]

env:
NODE_ENV: "test"
Expand Down
2 changes: 2 additions & 0 deletions tests/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { mainModule } from "../static/main";
import { db } from "./__mocks__/db";
import { server } from "./__mocks__/node";
import usersGet from "./__mocks__/users-get.json";
Expand All @@ -18,5 +19,6 @@ describe("User tests", () => {
const res = await fetch("https://api.ubiquity.com/users");
const data = await res.json();
expect(data).toMatchObject(usersGet);
expect(async () => await mainModule()).not.toThrow();
});
});

0 comments on commit 419442c

Please sign in to comment.