From 97d70317bb7790eafb88385e97612ec43adf5163 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 13 Sep 2026 22:42:27 -0700 Subject: [PATCH] test(launcher): resolve installed dependencies through the module graph --- src/devCctv.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) {