MCPcopy
hub / github.com/callumalpass/tasknotes / createTask

Function createTask

tests/unit/api/tasknotes-api-v1.test.ts:111–120  ·  view source on GitHub ↗
(overrides: Partial<TaskInfo> = {})

Source from the content-addressed store, hash-verified

109}
110
111function createTask(overrides: Partial<TaskInfo> = {}): TaskInfo {
112 return {
113 title: "Write plan",
114 status: "open",
115 priority: "normal",
116 path: "Tasks/write-plan.md",
117 archived: false,
118 ...overrides,
119 };
120}
121
122function createPluginContext(initialTasks: TaskInfo[] = [createTask()]): TestPluginContext {
123 const tasks = new Map(initialTasks.map((task) => [task.path, task]));

Callers 2

createPluginContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected