You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: load snapshot-style fixture subdirectories on boot
The recorder (v1.19.0, #155) writes fixtures to
<fixturePath>/<testId>/<provider>.json, but loadFixturesFromDir
skipped all subdirectories with a warning. Recorded fixtures could
never be replayed.
Recurse one level into subdirectories so the read path matches the
write path. Top-level JSON files load first, then subdirectory
fixtures in alphabetical order. Deeper nesting is ignored.
Closes#161
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# @copilotkit/aimock
2
2
3
+
## [Unreleased]
4
+
5
+
### Fixed
6
+
7
+
-**Fixture loader: snapshot-style subdirectories skipped on boot** — `loadFixturesFromDir` now recurses one level into subdirectories to load `<testId>/<provider>.json` files written by the snapshot recorder. Previously the loader skipped all subdirectories with a warning, so recorded fixtures could never be replayed. (Issue #161, reported by @jantimon)
8
+
-**CLI: immediate exit on npx/bunx** — Entry-point guard now matches the `aimock` bin name (not just `aimock-cli.js`), fixing silent exit when invoked via `npx aimock` or `bunx aimock`. (Issue #160)
0 commit comments