From fad4ed50d8b0b18abcb2c69a625eee4c75199d08 Mon Sep 17 00:00:00 2001 From: GiovanniCardamone Date: Thu, 19 Aug 2021 04:24:20 +0200 Subject: [PATCH] test: added test coverage report --- .github/workflows/npm-ci.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-ci.yml b/.github/workflows/npm-ci.yml index 91483a9..796ef31 100644 --- a/.github/workflows/npm-ci.yml +++ b/.github/workflows/npm-ci.yml @@ -29,7 +29,7 @@ jobs: - run: npm run build # Run Tests - - run: npm test + - run: npm test:coverage # Report Coverage - name: Coveralls GitHub Action diff --git a/package.json b/package.json index e405993..352b538 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "build": "tsc", "build:watch": "tsc --watch", "lint": "eslint .", - "test": "tap --ts --node-arg=--require=ts-node/register tests/**/*.test.ts" + "test": "tap --ts --node-arg=--require=ts-node/register tests/**/*.test.ts", + "test:coverage": "tap --ts --node-arg=--require=ts-node/register --cov --coverage-report=lcovonly tests/**/*.test.ts" }, "repository": { "type": "git",