Commit 4766daa
fix: regenerate stale vitest config and add .js extension for ESM imports
Two fixes discovered during end-to-end testing:
1. _ensure_codeflash_vitest_config() reused existing configs that lacked
pool: 'forks', causing benchmarking to fall back to wall-clock timing
on re-runs. Now checks for the required setting and regenerates if
missing.
2. ESM projects require explicit .js file extensions in import specifiers
(e.g., `import foo from './lib/foo.js'`). The verifier stripped the
extension but never added .js back for ESM, causing
ERR_MODULE_NOT_FOUND in Mocha ESM projects like axios.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e8a4f96 commit 4766daa
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments