From 9688e6469282db7bcb787521eee7c2471f01edbe Mon Sep 17 00:00:00 2001 From: Hermes Date: Thu, 25 Jun 2026 16:43:26 -0700 Subject: [PATCH] Fix DC-005 latent path bug: health-checker required './platform-paths' but file lives at top level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After DC-005 refactor moved health-checker.js into src/monitoring/, the require path was never updated. Tests in __tests__/health-checker.test.js failed with 'Cannot find module' → 59 cascading test failures in the health-checker suite. Path: src/monitoring/health-checker.js → 'require(./platform-paths)' Fix: 'require(../../platform-paths)' Verified: 921/922 tests passing (one known async-timing flake in logging.test.js 'writes entry to ERROR_LOG_FILE with context'). --- dashcaddy-api/src/monitoring/health-checker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashcaddy-api/src/monitoring/health-checker.js b/dashcaddy-api/src/monitoring/health-checker.js index 270a427..e458c59 100644 --- a/dashcaddy-api/src/monitoring/health-checker.js +++ b/dashcaddy-api/src/monitoring/health-checker.js @@ -9,7 +9,7 @@ const http = require('http'); const EventEmitter = require('events'); const fs = require('fs'); const path = require('path'); -const paths = require('./platform-paths'); +const paths = require('../../platform-paths'); // Persist health config + history alongside the other state files (services.json, // config.json) rather than next to the source. In a container that data dir is the