test(security): add createSecurityTaskRunner mock to securityScanSpec

securityScanSpec provides a custom validateFileSafety but pack() still
calls createSecurityTaskRunner before passing the prewarm runner through.
Add a no-op mock so the test doesn't try to spawn real worker threads.

https://claude.ai/code/session_017gxajnSibkNqKmPDG8wDBp
This commit is contained in:
Claude
2026-05-28 10:17:28 +00:00
parent daf736c1da
commit 992623bfd0
@@ -89,6 +89,10 @@ const runPack = async (rootDir: string, config: RepomixConfigMerged) =>
taskRunner: { run: async () => 0, cleanup: async () => {} },
warmupPromise: Promise.resolve(),
}),
createSecurityTaskRunner: () => ({
taskRunner: { run: async () => [], cleanup: async () => {} },
warmupPromise: Promise.resolve(),
}),
calculateMetrics: async (processedFiles) => ({
totalFiles: processedFiles.length,
totalCharacters: processedFiles.reduce((acc, f) => acc + f.content.length, 0),