fix: mock system api in layout tests to prevent network crashes

- Mocked `getNotifications` and `checkUpdates` in `Layout.test.tsx`
- Prevents `UND_ERR_INVALID_ARG` errors caused by unmocked `undici` network requests in JSDOM
- Ensures clean test execution for `Layout` and child components
This commit is contained in:
GitHub Actions
2026-02-09 07:28:16 +00:00
parent 376f9d3e34
commit dc505b2789
6 changed files with 40 additions and 15 deletions

View File

@@ -12,7 +12,7 @@ sleep 1
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
FRONTEND_DIR="$ROOT_DIR/frontend"
MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-87.5}}"
MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-88}}"
cd "$FRONTEND_DIR"