test(claude-code-plugin-loader): cover plugin path nullish resolution

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-11 23:36:35 +09:00
parent cd8352c108
commit 50df6f0d3e
2 changed files with 56 additions and 1 deletions
@@ -5,7 +5,7 @@ export function resolvePluginPath(path: string, pluginRoot: string): string {
}
export function resolvePluginPaths<T>(obj: T, pluginRoot: string): T {
if (obj === null || obj === undefined) return obj
if (obj == null) return obj
if (typeof obj === "string") {
return resolvePluginPath(obj, pluginRoot) as T
}