mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
context test: derive the snapshot identity from the verb's own resolver
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vau2X53xGTjjTCXWMVBoNY
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
819817b705
commit
5f3defb2da
@@ -752,8 +752,9 @@ mod tests_660 {
|
||||
let dir = jsp::join(&[&cwd, ".impeccable", "critique"]);
|
||||
std::fs::create_dir_all(&dir).unwrap();
|
||||
let name = "2026-05-12T18-30-00Z__app-tsx.md";
|
||||
// Joined the way the verb resolves it, so the separators match on Windows.
|
||||
let identity = format!("file:{}", jsp::join(&[&cwd, "App.tsx"]));
|
||||
// The identity exactly as the verb resolves it for this target from this
|
||||
// cwd, so the test holds on every platform's path semantics.
|
||||
let identity = resolve_target_identity("App.tsx", &cwd).unwrap();
|
||||
let body = format!("---\ntarget_identity: \"{}\"\nslug: app-tsx\n---\n# Critique\n", identity);
|
||||
std::fs::write(jsp::join(&[&dir, name]), &body).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user