From 3ef78242cd5b4375e494f799bfe7af29775cdb56 Mon Sep 17 00:00:00 2001 From: James Cruddas Date: Wed, 18 Mar 2026 22:15:31 +0000 Subject: [PATCH] Increase Jest branch coverage above 80 percent --- CHANGELOG.md | 4 + assets/changelog.json | 7 + tests/app.coverage-extra.test.js | 244 +++++++++++++++++++++++++++++++ 3 files changed, 255 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3765c55..4d8db53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to PWA Template will be documented in this file. This project adheres to a manual release process; update both this file and `assets/changelog.json` when shipping new versions so the in-app update summary stays accurate. +## [NEXT_VERSION] - [NEXT_DATE] + +- Expand automated test coverage for additional edge cases so branch coverage now exceeds the 80% minimum target. + ## 1.1.39 - 2026-03-18 - Add extra automated test scenarios for fallback states and navigation actions so reliability checks catch more edge cases. diff --git a/assets/changelog.json b/assets/changelog.json index 4038380..f60b83e 100644 --- a/assets/changelog.json +++ b/assets/changelog.json @@ -1,4 +1,11 @@ [ + { + "version": "[NEXT_VERSION]", + "date": "[NEXT_DATE]", + "changes": [ + "Increase automated branch coverage above 80% by adding tests for more edge-case app behavior." + ] + }, { "version": "1.1.39", "date": "2026-03-18", diff --git a/tests/app.coverage-extra.test.js b/tests/app.coverage-extra.test.js index 0a4300c..179d988 100644 --- a/tests/app.coverage-extra.test.js +++ b/tests/app.coverage-extra.test.js @@ -20,6 +20,7 @@ describe('app coverage additions', () => { +