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

fix: use platform-valid setup script URL in test

[._.]/ Adam Eivy07ab7a8ce917
diff --git a/scripts/setup-db.test.js b/scripts/setup-db.test.js
index 328631d65d..5e1d613ff7 100644
--- a/scripts/setup-db.test.js
+++ b/scripts/setup-db.test.js
@@ -76,7 +76,7 @@ async function runSetup({ mode = 'docker', unavailable, tty = false, nativeReady
.replace('import.meta.url', 'scriptUrl');
try {
await runInNewContext(`(async () => {${source}\n})()`, {
- scriptUrl: 'file:///example/scripts/setup-db.js', dirname, join, fileURLToPath,
+ scriptUrl: new URL('./setup-db.js', import.meta.url).href, dirname, join, fileURLToPath,
parseNativePort, parseDockerPort,
parseEnvFile: () => savedEnv,
upsertEnvKey: (_path, key, value) => { savedEnv[key] = value; },