Commit 79c5439
fix: Use CODEFLASH_MONOREPO_ROOT for jest-runner resolution in loop-runner
The loop-runner from PR #1318 uses process.cwd() to resolve jest-runner,
but in monorepos the cwd is the package directory, not the monorepo root.
This fix checks CODEFLASH_MONOREPO_ROOT env var first (set by Python runner)
before falling back to process.cwd(). This ensures jest-runner is found in
monorepo root node_modules.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5c3076a commit 79c5439
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments