test: copy lib/result-codes-release.ts wherever a fixture copies lib/result-codes.ts; the scope-signal check requires the helper's computed emission

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-10-17 02:52:18 +00:00
1 parent 7864483aa1
commit 87921798a4
4 files changed
+4 -2

No files matched your search

@@ -31,6 +31,7 @@ on:
- 'lib/gate-diff/**'
- 'lib/pregate/**'
- 'lib/result-codes.ts'
- 'lib/result-codes-release.ts'
- 'bin/gstack-wtree'
- 'bin/gstack-slug'
- 'bin/gstack-path-spelling.sh'
+1 -1
View File
@@ -70,7 +70,7 @@ function scaffoldFixture(workDir: string): { workDir: string; stateRoot: string;
// These imports are resolved relative to the copied install, not the source checkout.
const libDir = path.join(workDir, 'lib');
fs.mkdirSync(libDir, { recursive: true });
for (const file of ['jsonl-store.ts', 'is-conductor.ts', 'state-root.ts', 'bin-context.ts', 'remote-identity.ts', 'script-invocation.ts', 'result-codes.ts']) {
for (const file of ['jsonl-store.ts', 'is-conductor.ts', 'state-root.ts', 'bin-context.ts', 'remote-identity.ts', 'script-invocation.ts', 'result-codes.ts', 'result-codes-release.ts']) {
fs.copyFileSync(path.join(ROOT, 'lib', file), path.join(libDir, file));
}
+1 -1
View File
@@ -374,7 +374,7 @@ for (const skillName of ['review', 'ship']) {
// A signal the scope block does not print must come from the helper its own selection line runs.
const helper = /bin\/(gstack-[a-z-]+) detect\b/.exec(selection.split('\n').find(line => line.includes(signal))!)?.[1];
expect(helper, signal).toBeDefined();
expect(readFileSync(join(root, 'bin', helper!), 'utf8'), signal).toContain(`${signal}=`);
expect(readFileSync(join(root, 'bin', helper!), 'utf8'), signal).toContain(`${signal}=\${`);
}
});
+1
View File
@@ -29,6 +29,7 @@ const HOOK_FILES = [
'lib/remote-identity.ts',
'lib/script-invocation.ts',
'lib/result-codes.ts',
'lib/result-codes-release.ts',
];
const SLUG = 'stop-hook-slug-test';
const BUDGET_MS = 2000;