@windyroad/itil 0.21.0-preview.214 → 0.21.0-preview.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/itil",
3
- "version": "0.21.0-preview.214",
3
+ "version": "0.21.0-preview.215",
4
4
  "description": "ITIL-aligned IT service management for Claude Code (problem, and future incident/change skills)",
5
5
  "bin": {
6
6
  "windyroad-itil": "./bin/install.mjs"
@@ -121,15 +121,18 @@ scaffold_all() {
121
121
 
122
122
  @test "fixture: full re-application is idempotent (no diff)" {
123
123
  scaffold_all
124
- # Snapshot.
125
- cp -R . "$TEST_DIR/.snapshot-1"
124
+ # Snapshot into a sibling temp dir — NOT inside $TEST_DIR. GNU cp refuses
125
+ # `cp -R . dest` when dest is a child of source ("cannot copy a directory
126
+ # into itself"), so the test fails on Linux CI even though macOS BSD cp
127
+ # tolerates it. Putting the snapshot outside $TEST_DIR removes the platform
128
+ # divergence (P127).
129
+ SNAPSHOT_DIR=$(mktemp -d)
130
+ cp -R "$TEST_DIR/." "$SNAPSHOT_DIR"
126
131
  # Re-apply.
127
132
  scaffold_all
128
- # Diff against snapshot — exclude the snapshot dir itself + any tmp.
129
- run diff -ru \
130
- --exclude='.snapshot-1' \
131
- --exclude='.git' \
132
- "$TEST_DIR/.snapshot-1" "$TEST_DIR"
133
+ # Diff against snapshot.
134
+ run diff -ru "$SNAPSHOT_DIR" "$TEST_DIR"
135
+ rm -rf "$SNAPSHOT_DIR"
133
136
  # diff exit 0 means no differences.
134
137
  [ "$status" -eq 0 ]
135
138
  }