test(tooling): isolate pnpm fallback path

This commit is contained in:
Vincent Koc
2026-06-10 23:11:21 +09:00
parent bb6e47729c
commit 4ecec2f9e2

View File

@@ -196,6 +196,7 @@ src/a.ts: src/a.ts
const calls: unknown[] = [];
const resultPromise = runKnipUnusedFiles({
env: { PATH: "" },
npmExecPath: "",
spawnCommand(command: string, args: string[], options: unknown) {
calls.push({ args, command, options });