obsidian-plugin-markdown-tasks/test/setup.ts
Felipe M. 486500fe20
Convert plain lines to tasks when cycling
The cycle task status command now turns a non-task line into `- [ ]`
(or inserts `[ ]` after an existing list marker), so users can run
the shortcut on plain text without first creating a task. Adds a
bun test preload that mocks the obsidian runtime so taskActions can
be unit-tested directly.
2026-05-06 08:13:00 +02:00

9 lines
207 B
TypeScript

import {mock} from "bun:test";
void mock.module("obsidian", () => ({
AbstractInputSuggest: class {},
PluginSettingTab: class {},
Setting: class {},
setIcon: () => undefined,
getIconIds: () => [],
}));