mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-16 05:17:24 +01:00
docs: bug-report template asks for doctor output; README troubleshooting entry; doctor test in the Windows lane
The template gives the Claude Code doctor path and a lookup for other hosts and names no bare gstack- command (asserted in test/gstack-doctor.test.ts). The doctor test runs every script through explicit bash argv, so it joins the curated Windows free subset. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
a9f2ff6374
commit
bc9c757d76
4 files changed
+71
No files matched your search
@@ -337,3 +337,23 @@ describe('./setup --status Codex row', () => {
|
||||
expect(fs.readdirSync(f.state).sort()).toEqual(before);
|
||||
});
|
||||
});
|
||||
|
||||
describe('bug-report template and README (DX-2, DX-12)', () => {
|
||||
const template = fs.readFileSync(path.join(REPO, '.github/ISSUE_TEMPLATE/bug_report.md'), 'utf8');
|
||||
|
||||
test('the template asks for the doctor output with the Claude Code path and a lookup for other hosts', () => {
|
||||
expect(template).toContain('~/.claude/skills/gstack/bin/gstack-doctor');
|
||||
expect(template).toContain('./setup --status');
|
||||
expect(template).toContain('/bin/gstack-paths --get GSTACK_STATE_ROOT');
|
||||
});
|
||||
|
||||
test('the template names no bare gstack- command', () => {
|
||||
for (const m of template.matchAll(/gstack-[a-z]/g)) expect(template.slice(0, m.index).endsWith('/bin/'), template.slice(m.index! - 40, m.index! + 20)).toBe(true);
|
||||
});
|
||||
|
||||
test('README troubleshooting points at the doctor by absolute path', () => {
|
||||
const readme = fs.readFileSync(path.join(REPO, 'README.md'), 'utf8');
|
||||
const section = readme.slice(readme.indexOf('## Troubleshooting'));
|
||||
expect(section).toContain('`~/.claude/skills/gstack/bin/gstack-doctor`');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user