MCPcopy Index your code
hub / github.com/modem-dev/hunk / createExampleDiffFile

Function createExampleDiffFile

src/core/liveComments.test.ts:12–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10} from "./liveComments";
11
12function createExampleDiffFile() {
13 return createTestDiffFile({
14 after: lines(
15 "export const alpha = 2;",
16 "export const keep = true;",
17 "export const beta = 2;",
18 "export const gamma = true;",
19 ),
20 before: lines("export const alpha = 1;", "export const keep = true;", "export const beta = 1;"),
21 context: 3,
22 id: "file:example",
23 path: "src/example.ts",
24 previousPath: "src/example-old.ts",
25 });
26}
27
28describe("live comment helpers", () => {
29 test("finds a diff file by current or previous path", () => {

Callers 1

Calls 2

createTestDiffFileFunction · 0.90
linesFunction · 0.90

Tested by

no test coverage detected