Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/fix/disable-jest-co…
Browse files Browse the repository at this point in the history
…mments'
  • Loading branch information
gentlementlegen committed Jun 21, 2024
2 parents 079b1ab + 6bc9202 commit 8354c0b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Run Jest testing suite
on:
workflow_dispatch:
workflow_run:
workflows: ["Build"]
types:
- completed
pull_request:

env:
NODE_ENV: "test"
Expand All @@ -22,10 +19,5 @@ jobs:
with:
fetch-depth: 0

- name: Jest With Coverage Comment
# Ensures this step is run even on previous step failure (e.g. test failed)
if: always()
uses: ArtiomTr/jest-coverage-report-action@v2
with:
package-manager: yarn
prnumber: ${{ github.event.pull_request.number || github.event.workflow_run.pull_requests[0].number }}
- name: Jest With Coverage
run: yarn install --immutable --immutable-cache --check-cache && yarn test
1 change: 1 addition & 0 deletions cypress/e2e/main.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ describe("Homepage tests", () => {
});
cy.get("@consoleError").should("not.be.called");
cy.get("body").should("exist");
cy.get("h1").should("exist");
});
});
5 changes: 5 additions & 0 deletions static/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
export async function mainModule() {
console.log(`Hello from mainModule`);
}

export function myUntestedFunction() {
console.log("hello");
}

mainModule()
.then(() => {
console.log("mainModule loaded");
Expand Down

0 comments on commit 8354c0b

Please sign in to comment.