Update packages/codeflash/runtime/loop-runner.js

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
mohammed ahmed 2026-02-16 14:35:33 +02:00 committed by GitHub
parent 31e7116b84
commit 56941357c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,7 +87,10 @@ function findJestRunnerRecursive(nodeModulesPath, maxDepth = 5) {
// - pnpm versioned directories (jest-runner@30.0.5)
const shouldRecurse = entry.name === 'node_modules' ||
entry.name.startsWith('@') ||
entry.name.startsWith('.') ||
const shouldRecurse = entry.name === 'node_modules' ||
entry.name.startsWith('@') ||
entry.name === '.pnpm' || entry.name === '.yarn' ||
entry.name.startsWith('jest-runner@');
entry.name.startsWith('jest-runner@');
if (shouldRecurse) {