| 7 | import { findLeaf, type PaneLayout, type PaneLeaf } from './lib/pane-layout' |
| 8 | |
| 9 | function makeTask(content: string, taskIndex = 0): VaultTask { |
| 10 | return { |
| 11 | id: `inbox/Note.md#${taskIndex}`, |
| 12 | sourcePath: 'inbox/Note.md', |
| 13 | noteTitle: 'Note', |
| 14 | noteFolder: 'inbox', |
| 15 | lineNumber: taskIndex, |
| 16 | taskIndex, |
| 17 | rawText: `- [ ] ${content}`, |
| 18 | content, |
| 19 | checked: false, |
| 20 | waiting: false, |
| 21 | tags: [] |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // Some store flows validate tabs against `state.notes` by path, so tests that |
| 26 | // open multiple tabs need note fixtures whose metadata matches each tab path. |