Commit 846b198
committed
test(core): add comprehensive coverage tests for CustomToolRegistry
Add 33 new tests targeting previously uncovered paths in custom-tool-registry.ts:
- loadFromDirectory error handling (empty dirs, mixed files, .js support)
- loadFromDirectoryIfStale behavior (non-existent dirs, staleness detection)
- loadFromDirectories / loadFromDirectoriesIfStale edge cases
- register with source path option
- clearCache disk cleanup (.mjs removal, subdirectory cleanup)
- copyEnvFiles private method (copying, directory skipping, empty dirs, missing dirs)
- getAllSerialized with parameters schema
- extension path and nodePaths options
- size getter behavior
- validate edge cases (null name, non-string description, bad params)1 parent 3ee98cf commit 846b198
2 files changed
Lines changed: 669 additions & 0 deletions
File tree
- packages/core/src/custom-tools/__tests__
0 commit comments