Skip to content

Commit

Permalink
Merge pull request #24 from FernandVEYRIER/development
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 authored Mar 6, 2024
2 parents 438da50 + 80a8717 commit aebfe0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 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
3 changes: 2 additions & 1 deletion .github/workflows/knip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Knip

on:
pull_request:
workflow_dispatch:

permissions: write-all

Expand All @@ -27,4 +28,4 @@ jobs:
comment_id: ${{ github.workflow }}-reporter
command_script_name: knip-ci
annotations: true
ignore_results: false
ignore_results: false
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 aebfe0e

Please sign in to comment.