fix(quick-1): remove HIGH severity test overfitting in 4 test files

- frontmatter.test.cjs: delete FRONTMATTER_SCHEMAS describe block (4 tests asserting on lookup table shape)
- core.test.cjs: replace 12 per-profile per-agent matrix tests with 1 structural validation test
- commands.test.cjs: URL test uses URL.searchParams.get() instead of raw string includes
- state.test.cjs: date assertion uses before/after window to handle midnight boundary safely
This commit is contained in:
Ethan Hurst
2026-02-25 19:48:29 +10:00
parent 21c898b2cc
commit c9e73e9c94
4 changed files with 25 additions and 96 deletions

View File

@@ -834,6 +834,7 @@ describe('cmdStateAdvancePlan (state advance-plan)', () => {
test('advances plan counter when not on last plan', () => {
fs.writeFileSync(path.join(tmpDir, '.planning', 'STATE.md'), advanceFixture);
const before = new Date().toISOString().split('T')[0];
const result = runGsdTools('state advance-plan', tmpDir);
assert.ok(result.success, `Command failed: ${result.error}`);
@@ -846,8 +847,11 @@ describe('cmdStateAdvancePlan (state advance-plan)', () => {
const updated = fs.readFileSync(path.join(tmpDir, '.planning', 'STATE.md'), 'utf-8');
assert.ok(updated.includes('**Current Plan:** 2'), 'Current Plan should be updated to 2');
assert.ok(updated.includes('**Status:** Ready to execute'), 'Status should be Ready to execute');
const today = new Date().toISOString().split('T')[0];
assert.ok(updated.includes(`**Last Activity:** ${today}`), 'Last Activity should be updated to today');
const after = new Date().toISOString().split('T')[0];
assert.ok(
updated.includes(`**Last Activity:** ${before}`) || updated.includes(`**Last Activity:** ${after}`),
`Last Activity should be today (${before}) or next day if midnight boundary (${after})`
);
});
test('marks phase complete on last plan', () => {