MCPcopy Create free account
hub / github.com/driangle/taskmd / createTask

Function createTask

apps/web/src/test-utils/fixtures.ts:23–43  ·  view source on GitHub ↗
(overrides: Partial<Task> = {})

Source from the content-addressed store, hash-verified

21let taskCounter = 0;
22
23export function createTask(overrides: Partial<Task> = {}): Task {
24 const n = ++taskCounter;
25 return {
26 id: `${String(n).padStart(3, "0")}`,
27 title: `Task ${n}`,
28 status: "pending",
29 priority: "medium",
30 effort: "medium",
31 type: "feature",
32 dependencies: null,
33 tags: null,
34 phase: "",
35 group: "cli",
36 owner: "",
37 parent: "",
38 created: "2026-01-15",
39 body: "",
40 file_path: `tasks/cli/${String(n).padStart(3, "0")}-task-${n}.md`,
41 ...overrides,
42 };
43}
44
45// --- Board ---
46

Callers 6

columns.test.tsxFile · 0.90
TasksPage.test.tsxFile · 0.90
StatsPage.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected