Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

test(launcher): resolve installed dependencies through the module graph

Sameh Khamis97d70317bb77
diff --git a/src/devCctv.test.mjs b/src/devCctv.test.mjs
index b0c7ad31f..b2a7f7122 100644
--- a/src/devCctv.test.mjs
+++ b/src/devCctv.test.mjs
@@ -23,7 +23,7 @@ async function launch(overrides = {}, dotenv = '') {
await fs.mkdir(path.join(root, 'src', 'app'), { recursive: true });
await fs.copyFile(new URL('./app/data.js', import.meta.url), path.join(root, 'src', 'app', 'data.js'));
await fs.mkdir(path.join(root, 'node_modules'));
- await fs.symlink(fileURLToPath(new URL('../node_modules/vite', import.meta.url)), path.join(root, 'node_modules', 'vite'), 'dir');
+ await fs.symlink(fileURLToPath(new URL('.', import.meta.resolve('vite/package.json'))), path.join(root, 'node_modules', 'vite'), 'dir');
await fs.writeFile(path.join(root, '.env'), dotenv);
// Stub only external programs; both production launchers and dotenv parsing run.
for (const command of ['security', 'pkill', 'lsof']) {