From 94ac623a973eea919197f2cf64492f8bb03dc38e Mon Sep 17 00:00:00 2001 From: The Architect Date: Sun, 8 Nov 2026 03:16:41 +0000 Subject: [PATCH] Docs test: a project starts its first window on the day it is created The standard's start date is rewritten by init to the creation day, so the test compares the standard without it. It failed from 7 November 2026. Signed-off-by: The Architect --- test/standards-and-teams.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/standards-and-teams.test.ts b/test/standards-and-teams.test.ts index e2063b6..53bf22e 100644 --- a/test/standards-and-teams.test.ts +++ b/test/standards-and-teams.test.ts @@ -158,9 +158,11 @@ describe("how-to/configure-a-standard", () => { const name = init.split(" ")[2]!; const copied = readFileSync(join(cwd, name, "standard.yaml"), "utf8"); // The standard, after a first line naming where it came from; init writes it back as - // YAML, so only its formatting may differ. + // YAML, so only its formatting may differ, and each method's first window, which starts + // on the day the project is created. expect(copied.split("\n")[0]).toBe(`# From ${path}`); - expect(parse(copied)).toEqual(parse(standard)); + const withoutStart = (yaml: string) => parse(yaml.replace(/^(\s*start: ).+$/gm, "$1")); + expect(withoutStart(copied)).toEqual(withoutStart(standard)); expect(start).toContain(`\`${name}/standard.yaml\` starts with \`# From ${path}\``); }); });