From f28358b33bb789c4c7926fa006a7cb659e5e84e7 Mon Sep 17 00:00:00 2001 From: grantbirki Date: Thu, 13 Apr 2023 23:10:02 +0100 Subject: [PATCH] update ci-test and jest --- .github/workflows/test.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08f0426..a308de7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,4 +33,4 @@ jobs: run: npm ci - name: run tests - run: npm run test + run: npm run ci-test diff --git a/package.json b/package.json index e7d4207..8994364 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "lint": "DEBUG=eslint:cli-engine eslint --fix .", "lint:check": "DEBUG=eslint:cli-engine eslint .", "prepare": "ncc build src/index.js -o dist --source-map --license licenses.txt", - "test": "jest" + "test": "(jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg", + "ci-test": "jest" }, "repository": { "type": "git",