MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createTask

Function createTask

tests/unit/modals/taskEditFormState.test.ts:13–25  ·  view source on GitHub ↗
(overrides: Partial<TaskInfo> = {})

Source from the content-addressed store, hash-verified

11const createMockApp = (mockApp: unknown): App => mockApp as App;
12
13function createTask(overrides: Partial<TaskInfo> = {}): TaskInfo {
14 return {
15 title: "Edit task",
16 status: "open",
17 priority: "normal",
18 path: "TaskNotes/Edit task.md",
19 archived: false,
20 contexts: [],
21 projects: [],
22 tags: [],
23 ...overrides,
24 };
25}
26
27const reviewField: UserMappedField = {
28 id: "review",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected