mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-24 10:39:57 +02:00
test: cover gstack-gbrain-detect --is-ok + dev-skill render refresh
Fills the two automated-coverage gaps from the eng review: --is-ok exit-code gate (no-cli -> nonzero, healthy -> 0, plus an agrees-with-JSON no-skew check reusing the deterministic fake-gbrain harness) and a static tripwire that dev-skill re-renders the :user variant into the workspace render dir only when it already exists. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -75,3 +75,17 @@ describe('.gitignore: render dir is declared untracked', () => {
|
||||
expect(read('.gitignore')).toContain('.claude/gstack-rendered/');
|
||||
});
|
||||
});
|
||||
|
||||
describe('dev-skill: refreshes the render on template change', () => {
|
||||
const devSkill = read('scripts/dev-skill.ts');
|
||||
|
||||
test('re-renders the :user variant into the workspace render dir', () => {
|
||||
expect(devSkill).toContain('gstack-rendered');
|
||||
expect(devSkill).toContain('--out-dir');
|
||||
expect(devSkill).toContain('--respect-detection');
|
||||
});
|
||||
|
||||
test('only refreshes when the render dir already exists (never creates it during plain dev)', () => {
|
||||
expect(devSkill).toContain('fs.existsSync(RENDER_DIR)');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user