Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: include database resolver in disposable PM2 fixtures (#11254)

Adam Eivyd06bb11d13b9
diff --git a/server/test/fixtures/ecosystemConfigCopy.js b/server/test/fixtures/ecosystemConfigCopy.js
index dd32c84045..972939e226 100644
--- a/server/test/fixtures/ecosystemConfigCopy.js
+++ b/server/test/fixtures/ecosystemConfigCopy.js
@@ -5,11 +5,13 @@ const repoFile = (rel) => new URL(`../../../${rel}`, import.meta.url);
/**
* Copy the REAL `ecosystem.config.cjs` into a disposable install root, with the
- * dependency-free `.env` parser it `require()`s (#9471) — a bare config copy
+ * dependency-free configuration modules it `require()`s — a bare config copy
* would throw MODULE_NOT_FOUND when loaded from the temp root.
*/
export function copyEcosystemConfig(root) {
mkdirSync(join(root, 'scripts', 'lib'), { recursive: true });
copyFileSync(repoFile('ecosystem.config.cjs'), join(root, 'ecosystem.config.cjs'));
- copyFileSync(repoFile('scripts/lib/envFile.cjs'), join(root, 'scripts', 'lib', 'envFile.cjs'));
+ for (const file of ['envFile.cjs', 'databaseSettings.cjs']) {
+ copyFileSync(repoFile(`scripts/lib/${file}`), join(root, 'scripts', 'lib', file));
+ }
}