Show experience position with role progression (#3116)

This commit is contained in:
Amruth Pillai
2026-05-28 13:51:02 +02:00
committed by GitHub
parent 1d761be05b
commit 9ce5bacd22
2 changed files with 16 additions and 3 deletions
@@ -0,0 +1,15 @@
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { describe, expect, it } from "vitest";
const source = readFileSync(fileURLToPath(new URL("./sections.tsx", import.meta.url)), "utf8");
describe("ExperienceSection", () => {
it("does not hide the item position header when role progression is present", () => {
expect(source).not.toContain("item.roles.length === 0 && (hasPosition || hasSplitRowText(headerPeriod))");
});
it("does not repeat the summary period after rendering it in a role-progression header", () => {
expect(source).not.toContain("item.roles.length > 0 && <Text>{item.period}</Text>");
});
});