mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
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:
1 parent
c56ef52ce3
commit
a1d0a42450
7 files changed
+99
-5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user