mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-11 23:49:01 +02:00
test: registries, budgets and suite reconciled for Aside-first with the $B fallback
Touchfiles + E2E tiers gain the Aside keys, coverage matrix and eval baselines updated, size budget re-baselined to parity-baseline-v1.80.0.0.json (the contract plus fallback ride in every browsing skill), parity ceilings ratcheted with measured values, LLM-judge prompts and the E2E fixtures speak Aside-first, browse-fallback. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
* (dangling symlinks into a deleted render dir).
|
||||
*
|
||||
* The pattern is: save the original, assign in beforeAll, restore in
|
||||
* afterAll — confining the value to the file's execution window. See
|
||||
* browse/test/cdp-e2e.test.ts for the reference shape.
|
||||
* afterAll — confining the value to the file's execution window.
|
||||
*
|
||||
* Heuristic: repo test files write module-scope statements unindented, so a
|
||||
* column-0 assignment is module scope; indented assignments (inside hooks,
|
||||
@@ -29,7 +28,9 @@ function trackedTestFiles(): string[] {
|
||||
cwd: ROOT, encoding: 'utf-8', timeout: 30_000,
|
||||
});
|
||||
if (out.status !== 0) throw new Error(`git ls-files failed: ${out.stderr}`);
|
||||
return out.stdout.split('\n').filter(Boolean);
|
||||
// The index can still list a file deleted from the working tree (a pending
|
||||
// `git rm`); scan only what exists on disk.
|
||||
return out.stdout.split('\n').filter(Boolean).filter((rel) => fs.existsSync(path.join(ROOT, rel)));
|
||||
}
|
||||
|
||||
describe('GSTACK_HOME module-scope tripwire', () => {
|
||||
|
||||
Reference in New Issue
Block a user