From 64e598641076245bab10ab13e9bca96c669c70c3 Mon Sep 17 00:00:00 2001 From: Miha Urbanija <10325909+mihaur@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:25:39 +0200 Subject: [PATCH] chore: add check for lines, functions and branches, generate coverage only for src --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 78dc52c..2c71053 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "debug": "fastify start --debug --log-level info --log-level info --pretty-logs --watch src/app.js", "lint": "eslint", "lint:fix": "eslint --fix", - "unit": "node --test --experimental-test-coverage", + "unit": "node --test --experimental-test-coverage --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 --test-coverage-include=src/**", "coverage:lcov": "node --run unit -- --test-reporter=lcov --test-reporter-destination=lcov.info", "test": "node --run lint && node --run unit", "license-checker": "npx license-checker --production --onlyAllow='Apache-2.0;Apache-2.0 WITH LLVM-exception;MIT;ISC;BSD-3-Clause;BSD-2-Clause' --excludePackages 'buffers@0.1.1;event-stream@0.9.8;png-js@0.1.1'",