fix(test): resolve the macOS temp root through its symlink in the launcher and preview tests (#501)

Supersedes #301 by @VassagoDevteam, ported onto the current component layout with fixes from review.

Verified before merge: format, package boundaries, unit suite, build, and the browser tracking suite; a browser harness for the change where one applies; adversarial review applied.

Co-authored-by: Vassago DevTeam <[email protected]>
This commit is contained in:
Bilawal SidhuandVassago DevTeam authored and GitHub committed 2026-09-14 18:55:24 -05:00
1 parent c56ef52ce3
commit a1d0a42450
7 files changed
+99 -5

No files matched your search

+4 -1
View File
@@ -8,6 +8,7 @@ import { execFile } from 'node:child_process';
import { promisify } from 'node:util';
import { projectRoot } from '../scripts/project-root.mjs';
import { inspectSetup } from '../scripts/setup-doctor.mjs';
import { makeFixtureRoot } from './tooling/fixtureRoot.mjs';
const run = promisify(execFile);
const sourceRoot = fileURLToPath(new URL('../', import.meta.url));
@@ -60,7 +61,9 @@ const bashTest = process.platform === 'win32' ? test.skip : test;
bashTest(
'launcher reads the selected project keys and starts its command while source checks use the installation',
async () => {
const root = await mkdtemp(path.join(os.tmpdir(), 'gev other project-'));
// Physical path: the launched process reports its cwd resolved, and macOS
// reaches the temp directory through a symlink.
const root = await makeFixtureRoot('gev other project-');
try {
const bin = path.join(root, 'bin');
await mkdir(bin);