Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Skip runtime-defaults raw-node TS imports when integration node_modules absent

rcourtmanec72977d3e2b
diff --git a/scripts/tests/test-hot-dev-bg.sh b/scripts/tests/test-hot-dev-bg.sh
index 794da0e049..09a50562e6 100755
--- a/scripts/tests/test-hot-dev-bg.sh
+++ b/scripts/tests/test-hot-dev-bg.sh
@@ -887,6 +887,14 @@ test_integration_runtime_defaults_centralize_managed_browser_detection() {
test_integration_runtime_defaults_prefer_explicit_browser_override() {
local output
+ # Raw Node can't load .ts files without the tsx loader or Node 22.6+'s
+ # --experimental-strip-types; skip when the integration deps aren't
+ # installed (CI smoke, fresh clones). Same reasoning as the wrapper
+ # check above.
+ if [[ ! -d "${ROOT_DIR}/tests/integration/node_modules" ]]; then
+ echo "[SKIP] runtime-defaults explicit-override check (tests/integration/node_modules not installed)"
+ return 0
+ fi
output="$(
ROOT_DIR="${ROOT_DIR}" \
node --input-type=module <<'EOF'
@@ -911,6 +919,10 @@ EOF
test_integration_runtime_defaults_honor_repo_root_override() {
local output
+ if [[ ! -d "${ROOT_DIR}/tests/integration/node_modules" ]]; then
+ echo "[SKIP] runtime-defaults repo-root-override check (tests/integration/node_modules not installed)"
+ return 0
+ fi
output="$(
ROOT_DIR="${ROOT_DIR}" \
node --input-type=module <<'EOF'