Skip to content

test: use a real temporary Vault path for meeting candidate integration #71

Description

@PANGKAIFENG

背景

tests/integration/obsidian-plugin/meeting-candidate-controller.test.ts 当前用固定的 /tmp/synthetic-vault/... 字符串表示 sourceNote。测试不会读取真实文件,也不触碰用户 Vault,但该路径没有和测试上下文创建的临时 Vault 绑定。

影响

这是测试真实性与可移植性问题,不影响 #69 的运行时行为,也不阻塞 MVP。

建议

  • createTestServiceContext 暴露的临时根目录构造 08_Meetings/YYYY-MM/*.md
  • 必要时创建一份最小合成会议笔记;
  • 继续验证任务写入的 sourceNote 是完整绝对路径;
  • 清理继续复用现有 test context cleanup。

验收

  • 测试不使用固定 /tmp/synthetic-vault
  • 每次运行使用独立临时目录并自动清理。
  • 不读取或写入 ClawVault。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions