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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user