MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / makeTask

Function makeTask

tests/unit/utils/taskInfoAssembly.test.ts:5–17  ·  view source on GitHub ↗
(overrides: Partial<TaskInfo> = {})

Source from the content-addressed store, hash-verified

3import { buildTaskInfoFromMappedTask } from "../../../src/utils/taskInfoAssembly";
4
5function makeTask(overrides: Partial<TaskInfo> = {}): TaskInfo {
6 return {
7 title: "Mapped task",
8 status: "open",
9 priority: "normal",
10 path: "Mapped/original.md",
11 archived: false,
12 tags: ["task"],
13 contexts: ["work"],
14 projects: ["Project"],
15 ...overrides,
16 };
17}
18
19describe("buildTaskInfoFromMappedTask", () => {
20 it("adds path identity and computed blocking state", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected