fix(workspace): harden omo migration review issues

This commit is contained in:
YeonGyu-Kim
2026-05-16 18:02:54 +09:00
parent 82ec099c3a
commit 240a4a17ad
7 changed files with 91 additions and 10 deletions
@@ -48,4 +48,21 @@ describe("git-worktree", () => {
expect(summary).toContain("src/b.ts")
expect(summary).toContain("src/c.ts")
})
test("#given notepad path #when formatting omo plan changes #then does not report notepad updated", () => {
const summary = formatFileChanges([
{ path: ".omo/plans/work.md", added: 1, removed: 0, status: "modified" },
], ".omo/notepads/work/notes.md")
expect(summary).not.toContain("[NOTEPAD UPDATED]")
})
test("#given notepad path #when formatting omo notepad changes #then reports notepad updated", () => {
const summary = formatFileChanges([
{ path: ".omo/notepads/work/notes.md", added: 1, removed: 0, status: "modified" },
], ".omo/notepads/work/notes.md")
expect(summary).toContain("[NOTEPAD UPDATED]")
expect(summary).toContain(".omo/notepads/work/notes.md")
})
})