From b0eeafd1b6c1e0582bc9a14e9fc54886629d53d3 Mon Sep 17 00:00:00 2001 From: veeck Date: Thu, 16 Feb 2023 08:04:04 +0100 Subject: [PATCH 1/4] Only run jest verbose when in specialized tests --- jest.config.js | 1 - package.json | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index 8a2403c289..bb8be83345 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,6 +1,5 @@ module.exports = async () => { return { - verbose: true, testTimeout: 20000, testSequencer: "/tests/utils/test_sequencer.js", projects: [ diff --git a/package.json b/package.json index 7e3b2bd05f..1a0fa5a7cf 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", "test": "NODE_ENV=test jest -i --forceExit", "test:coverage": "NODE_ENV=test jest --coverage -i --forceExit", - "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit", - "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit", - "test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit", + "test:electron": "NODE_ENV=test jest --selectProjects electron -i --verbose --forceExit", + "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --verbose --forceExit", + "test:unit": "NODE_ENV=test jest --selectProjects unit -i --verbose --forceExit", "test:prettier": "prettier . --check", "test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json", "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json", From 91ddc877149007fe9add77e4f0e976c8a2388bf6 Mon Sep 17 00:00:00 2001 From: veeck Date: Thu, 16 Feb 2023 08:24:40 +0100 Subject: [PATCH 2/4] Add a 0% treshold for patch coverage --- .github/codecov.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/codecov.yaml b/.github/codecov.yaml index 3f76e9b50d..9edb9fa664 100644 --- a/.github/codecov.yaml +++ b/.github/codecov.yaml @@ -4,3 +4,6 @@ coverage: default: # advanced settings informational: true + patch: + default: + threshold: 0% From 7ab39f5df4ac38242604b1eba52a4de96173ba77 Mon Sep 17 00:00:00 2001 From: veeck Date: Thu, 16 Feb 2023 09:53:57 +0100 Subject: [PATCH 3/4] Update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67c0ae3be1..c7e2580a72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,11 +28,12 @@ _This release is scheduled to be released on 2023-04-01._ - Use develop as target branch for dependabot - Update issue template and contributing doc -- The weather modules clearly separates precipation amount and probability (risk of rain/snow) +- The weather modules clearly separates precipitation amount and probability (risk of rain/snow) - This requires all providers that only supports probability to change the config from `showPrecipitationAmount` to `showPrecipitationProbability`. - Update tests for weather and calendar module - Changed updatenotification module for MagicMirror repo only: Send only notifications for `master` if there is a tag on a newer commit - Update dates in Calendar widgets every minute +- Cleanup jest coverage for patches ### Fixed From 88252552dc8c7924cf962fa7ebe133eb8c890486 Mon Sep 17 00:00:00 2001 From: veeck Date: Thu, 16 Feb 2023 22:04:41 +0100 Subject: [PATCH 4/4] Set verbose false explicitly on coverage tests --- jest.config.js | 1 + package.json | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index bb8be83345..8a2403c289 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,6 @@ module.exports = async () => { return { + verbose: true, testTimeout: 20000, testSequencer: "/tests/utils/test_sequencer.js", projects: [ diff --git a/package.json b/package.json index 1a0fa5a7cf..6877aee6e7 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,10 @@ "install-fonts": "echo \"Installing fonts ...\n\" && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier", "postinstall": "npm run install-vendor && npm run install-fonts && echo \"MagicMirror² installation finished successfully! \n\"", "test": "NODE_ENV=test jest -i --forceExit", - "test:coverage": "NODE_ENV=test jest --coverage -i --forceExit", - "test:electron": "NODE_ENV=test jest --selectProjects electron -i --verbose --forceExit", - "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --verbose --forceExit", - "test:unit": "NODE_ENV=test jest --selectProjects unit -i --verbose --forceExit", + "test:coverage": "NODE_ENV=test jest --coverage -i --verbose false --forceExit", + "test:electron": "NODE_ENV=test jest --selectProjects electron -i --forceExit", + "test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit", + "test:unit": "NODE_ENV=test jest --selectProjects unit -i --forceExit", "test:prettier": "prettier . --check", "test:js": "eslint 'js/**/*.js' 'modules/default/**/*.js' 'clientonly/*.js' 'serveronly/*.js' 'translations/*.js' 'vendor/*.js' 'tests/**/*.js' 'config/*' --config .eslintrc.json", "test:css": "stylelint 'css/main.css' 'fonts/*.css' 'modules/default/**/*.css' 'vendor/*.css' --config .stylelintrc.json",