Skip to content

Commit d486a9b

Browse files
pajomaclaude
andcommitted
test(navigation): add diagnostic info to T3 assertion message
Captures base, weeksPat, and uri in the failure message so the root cause of the CI failure is visible in the log output. #200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f761e07 commit d486a9b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/suite/commands-prev-next.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,9 @@ suite('Issue #144 — Open Previous / Open Next navigation', () => {
419419
const weeklyPath = await seedWeeklyFile(tmpBase, 2026, 20);
420420
const doc = await vscode.workspace.openTextDocument(vscode.Uri.file(weeklyPath));
421421
const editor = await vscode.window.showTextDocument(doc);
422+
const diag = `tmpBase=${tmpBase} base=${ctrl.config.getBasePath()} weeksPat=${ctrl.config.getWeeksFilePatternRaw()} uri=${editor.document.uri.fsPath}`;
422423
const result = await getAdjacentWeekInput(editor, ctrl, 'next');
423-
assert.ok(result, 'expected an Input back');
424+
assert.ok(result, `expected an Input back [${diag}]`);
424425
assert.strictEqual(result!.week, 21);
425426
});
426427

0 commit comments

Comments
 (0)