Expand unit test coverage

modified:   maintenance.sh
	modified:   package-lock.json
	modified:   package.json
	new file:   src/screens/ActivePickListScreen.more.test.tsx
	new file:   src/screens/ManageCategoriesScreen.additional.test.tsx
	new file:   src/testUtils/mockDb.test.ts
This commit is contained in:
2025-12-01 20:56:44 +10:00
parent dac22fe5a8
commit 5d5edf7b47
6 changed files with 587 additions and 502 deletions
+5 -2
View File
@@ -23,8 +23,9 @@ if [ -f package.json ]; then
# npm ci will reconcile. We do a cheap check by comparing mtime.
if [ -f package-lock.json ]; then
if [ package-lock.json -nt node_modules ]; then
echo "package-lock.json newer than node_modules; running npm ci..."
npm ci
echo "package-lock.json newer than node_modules; running npm install & npm prune..."
npm install
npm prune
else
echo "npm deps look current; skipping install."
fi
@@ -36,6 +37,8 @@ else
echo "-> No package.json; skipping Node maintenance."
fi
npx npm-check-updates -u
# ----------------------------
# 2) Refresh Playwright Chromium if Playwright version changed
# ----------------------------