This repository has been archived on 2026-05-02. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
obsidian-plugin-auto-task-s.../test/sample-notes.ts
Felipe Martin 6c464483f5
Some checks are pending
CI / build (push) Waiting to run
Migrate dev environment to Bun with modern tooling
- Switch package manager from npm to Bun (bun.lock replaces package-lock.json)
- Move source to src/main.ts, tests to test/ (flattened structure)
- Build output now goes to dist/ with git-based version stamping in manifest
- Replace ESLint legacy config with ESLint v9 flat config (typescript-eslint v8)
- Add Prettier for formatting (.prettierrc)
- Add Husky pre-commit hook running bun run lint
- Add vault management scripts (install, uninstall, symlink, unlink)
- Add GitHub Actions CI and release workflows
- Update tsconfig for TypeScript v5, add isolatedModules/esModuleInterop
- Upgrade Jest config to jsdom environment, coverage from src/**
- Remove Makefile, version-bump.mjs, versions.json (replaced by bun scripts and git-tag versioning)
2026-04-13 15:09:11 +02:00

137 lines
2.2 KiB
TypeScript

// Test data for various note scenarios
export const NOTES_WITH_PENDING_TASKS = `---
title: Note with Pending Tasks
---
# Daily Tasks
- [ ] Review project proposal
- [x] Complete morning routine
- [ ] Call the client
- [ ] Update documentation
## Shopping List
- [x] Buy groceries
- [x] Pick up dry cleaning
`;
export const NOTES_WITH_ALL_COMPLETED_TASKS = `---
title: Note with All Completed
---
# Completed Project
- [x] Design the interface
- [X] Implement the backend
- [x] Write documentation
## Meeting Notes
- [x] Schedule follow-up meeting
- [x] Send summary email
`;
export const NOTES_WITH_NO_TASKS = `---
title: Regular Note without Tasks
---
# Regular Content
This is a regular note with no tasks.
- Regular bullet point
- Another idea
- More content
`;
export const NOTES_WITH_MIXED_FORMATS = `---
title: Complex Note with Mixed Content
---
# Project Tasks
## Phase 1
- [x] Research requirements
- [x] Create mockups
- [ ] Get approval
## Phase 2
- [ ] Implement backend
- [ ] Create frontend
- [ ] Write tests
### Shopping List (not tasks)
- Apples
- Bananas
- Oranges
> Quote with task: - [ ] This should be detected
\`\`\`
Code block with task: - [ ] This should NOT be detected
\`\`\`
Regular paragraph with - [ ] embedded task.
`;
export const NOTES_WITH_NESTED_TASKS = `---
title: Nested Tasks
---
- [ ] Main task
- [ ] Subtask 1
- [x] Subtask 2
- [ ] Sub-subtask
- [x] Deep nested task
`;
export const NOTES_WITH_DIFFERENT_BULLETS = `---
title: Different Bullet Types
---
- [ ] Dash task 1
* [ ] Asterisk task 1
+ [ ] Plus task 1
- [x] Dash completed
* [X] Asterisk completed
+ [x] Plus completed
`;
export const NOTES_WITH_MALFORMED_CHECKBOXES = `---
title: Malformed Checkboxes
---
- [ ] Valid task
- [] Invalid task (no space)
- [x] Valid completed
- [o] Invalid checkbox character
- [ Invalid bracket
`;
export const EMPTY_NOTE = '';
export const WHITESPACE_ONLY_NOTE = ' \n\n\t \n ';
export const NOTE_WITH_FRONTMATTER = `---
title: Existing Frontmatter
author: Test Author
tags: [test, sample]
---
# Content
- [ ] Task with existing frontmatter
`;
export const NOTE_WITH_PENDING_TASKS_PROPERTY = `---
title: Note with Existing Property
"Pending tasks": true
other-prop: value
---
# Content
- [x] All tasks are done
`;