From d416ce48a89af283587d6d62e456be69b8545d5d Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Sun, 3 Mar 2024 16:11:38 +0000 Subject: [PATCH] chore: add c8 config --- .c8rc.json | 6 ++++++ .github/workflows/main.yml | 2 ++ package.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .c8rc.json diff --git a/.c8rc.json b/.c8rc.json new file mode 100644 index 0000000..83a70a0 --- /dev/null +++ b/.c8rc.json @@ -0,0 +1,6 @@ +{ + "reporter": ["lcov"], + "exclude": [ + "lib/test" + ] +} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f8e867..f0de600 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,8 @@ jobs: run: npm ci - name: Lint run: npm run lint + - name: Build + run: npm run build - name: Test run: npm run test - name: Report Test Coverage diff --git a/package.json b/package.json index e50d37b..d9ee865 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "lint:format": "prettier --check src", "format": "prettier --write src", "lint": "npm run lint:format && eslint src", - "test": "c8 --reporter=lcov node --test", + "test": "c8 node --test lib/test/**/*_test.js", "prepare": "tshy" }, "repository": {