sotashimozono_obsidian-remo.../plugin/tests/compat
Souta 9b5d5f3f0f test: F14 Tasks / DataviewJS aggregation compat (#124)
Drives the metadataCache.getFileCache(file).listItems query shape that
both Tasks (raw checkbox scan) and DataviewJS (arbitrary JS over the
same cache) collapse to. Issue (#124 F14) calls for a 10-file fixture
vault with mixed task states.

Hot APIs exercised:
- vault.getMarkdownFiles() — enumerate the indexable corpus
- metadataCache.getFileCache(file).listItems — raw task records
- metadataCache.getFileCache(file).frontmatter — for the
  DataviewJS "filter by tag" branch

New:
- plugin/tests/compat/fixtures/tasks/{01..10}-*.md — 10 fixtures
  spread across all-open, mixed, mostly-done, completed, large
  (10-task), single-task, empty, no-tasks, frontmatter-tagged,
  archived shapes. Total 18 open + 16 done across 8 files-with-tasks.
- plugin/tests/compat/tasks.test.ts — 12 tests:
  - vault enumeration + per-file aggregate row count (10 each)
  - vault-wide totals (open=18, done=16, total=34, files-with=8)
  - per-file open/done counts match the fixture distribution
  - 100%-complete vs all-open file detection
  - DataviewJS-shape: filter by frontmatter tag, completion ratio,
    top-3 by open count

docs/plugin-compatibility.md: added a new Tasks row in the main
compat matrix marked " verified-by-harness (#124 F14)" with a
pointer to the test file. (Tasks was previously only listed in the
basePath survey table — no main-matrix entry until now.)

Counts: 52 test files / 734 pass / 1 Windows-skipped.

This completes Phase E F11-F14. Only the nightly compat workflow
(.github/workflows/compat.yml) remains as a follow-up in #124.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 18:06:06 +09:00
..
fixtures test: F14 Tasks / DataviewJS aggregation compat (#124) 2026-05-03 18:06:06 +09:00
CompatVault.ts fix: address PR-227 review comments 2026-05-03 17:58:03 +09:00
dataview.test.ts test: F11 Dataview compat smoke (#124) 2026-05-03 17:32:20 +09:00
excalidraw.test.ts fix: address PR-227 review comments 2026-05-03 17:58:03 +09:00
fixtures.ts fix: address PR-224 review comments 2026-05-03 17:21:50 +09:00
harness.test.ts test: F11 Dataview compat smoke (#124) 2026-05-03 17:32:20 +09:00
tasks.test.ts test: F14 Tasks / DataviewJS aggregation compat (#124) 2026-05-03 18:06:06 +09:00
templater.test.ts test: F12 Templater compat scenario (#124) 2026-05-03 17:42:12 +09:00