From 0fe811c7d643a483914577aafb96671ab9c17f92 Mon Sep 17 00:00:00 2001 From: rfprod Date: Fri, 30 Aug 2024 10:40:41 +0300 Subject: [PATCH] fix(workspace): updata husky hooks, fix unit test coverage thresholds - [x] adjust unit test coverage thresholds for the tools project; - [x] migrate husky hooks after upgrade to v9; --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- package.json | 2 +- tools/jest.config.ts | 4 ++-- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index e6a604c4..ca25ce16 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,6 +1,3 @@ #!/bin/sh -# shellcheck source=.husky/_/husky.sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 0cf15010..588dbe64 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,8 +1,5 @@ #!/bin/sh -# shellcheck source=.husky/_/husky.sh -. "$(dirname "$0")/_/husky.sh" - if [ "$NO_VERIFY" = 1 ]; then echo "pre-commit skipped" exit 0 diff --git a/package.json b/package.json index 7d3e3274..a0ce5c88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@app/nx-ng-starter", - "version": "8.0.7", + "version": "8.0.8", "private": true, "description": "Monorepo starter: Nx, Angular, Angular Elements, Electron, NodeJS, NestJS, Firebase.", "license": "MIT", diff --git a/tools/jest.config.ts b/tools/jest.config.ts index 3e190e8d..cfa9d980 100644 --- a/tools/jest.config.ts +++ b/tools/jest.config.ts @@ -6,8 +6,8 @@ const config: Config.InitialOptions = { global: { branches: 68, functions: 77, - lines: 79, - statements: 78, + lines: 78, + statements: 77, }, }, displayName: 'tools',