mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-05 14:20:58 +00:00
* test(electron): isolate dev-resolution fixtures via CODEBURN_DEV_REPO_ROOT Rework of the #681 fix per review: instead of stubbing the real repo dist/cli.js with snapshot-restore, the Vite-dev resolution branch gains a CODEBURN_DEV_REPO_ROOT override (matching the CODEBURN_PATH_DIRS precedent) so the whole fixture lives in a per-test tmpdir. With the env unset the resolution order is byte-identical to before. - covers all three fresh-clone failures on current main, including the resolveTarget dev-repo-beats-bundled case - deletes the snapshot-restore machinery, the parent-path precondition and the beforeAll repo-scanning guard - tests assert both override-set (tmpdir wins) and override-unset behavior Closes #681 * test(electron): drop environment-coupled null assertion for unset dev-root override The override-unset case resolved <repo>/dist/cli.js whenever a build had run, so the toBeNull() assertion depended on the absence of a gitignored artifact. The override-set tests already prove the new branch and the non-Vite test covers the null path. |
||
|---|---|---|
| .. | ||
| quota | ||
| cli.test.ts | ||
| cli.ts | ||
| main.test.ts | ||
| main.ts | ||
| preload.ts | ||
| telemetry.test.ts | ||
| telemetry.ts | ||
| updates.test.ts | ||
| updates.ts | ||