Fix DC-005 latent path bug: health-checker required './platform-paths' but file lives at top level
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').
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user