Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ describe("highlightSourceFile", () => {
]);
});

it("initializes source and snippet highlighting without a warmup", async () => {
it("initializes source and snippet highlighting without a warmup", async ({ onTestFinished }) => {
vi.resetModules();
const highlighter = await import("./shikiReviewHighlighter");
const source = "const answer: number = 42;";

// Shiki bounds tokenization by wall time; CI contention must not truncate this fixture.
const clockSpy = vi.spyOn(Date, "now").mockReturnValue(0);
onTestFinished(() => clockSpy.mockRestore());
const highlighted = await highlighter.highlightSourceFile({
path: "example.ts",
contents: source,
Expand Down
3 changes: 2 additions & 1 deletion knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"scripts": {
// Knip loads its preprocessor through a CLI option, not a source import.
"entry": ["knip-schemas.ts"],
// The CLI archive smoke tool is run manually in this fork, without release workflows.
"entry": ["knip-schemas.ts", "smoke-cli-archive.ts"],
},
"apps/server": {
// Vite+ pack entries and the launcher used by installed background services.
Expand Down
Loading