Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/standards-and-teams.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
expect(printed.output.trim()).toBe(exampleRequest("minimal"));
});

it("prints what the ADF, Synapse and DuckDB routes add, from each platform page's project", () => {

Check failure on line 78 in test/standards-and-teams.test.ts

View workflow job for this annotation

GitHub Actions / validate

test/standards-and-teams.test.ts > how-to/ask-the-platform-team > prints what the ADF, Synapse and DuckDB routes add, from each platform page's project

Error: Test timed out in 5000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ test/standards-and-teams.test.ts:78:3
for (const [heading, guide, sample, whole] of [
["### Azure Data Factory", "platforms/landing-only", "landing-only", true],
["### Synapse serverless views", "platforms/synapse", "synapse-views", false],
Expand Down Expand Up @@ -158,9 +158,11 @@
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<day>"));
expect(withoutStart(copied)).toEqual(withoutStart(standard));
expect(start).toContain(`\`${name}/standard.yaml\` starts with \`# From ${path}\``);
});
});
Expand Down
Loading