(cwd: string)
| 35 | }); |
| 36 | |
| 37 | function runScript(cwd: string): { stdout: string; stderr: string; status: number } { |
| 38 | const res = spawnSync('bun', ['run', SCRIPT], { |
| 39 | encoding: 'utf-8', |
| 40 | cwd, |
| 41 | env: { ...process.env }, |
| 42 | }); |
| 43 | return { |
| 44 | stdout: (res.stdout ?? '').trim(), |
| 45 | stderr: (res.stderr ?? '').trim(), |
| 46 | status: res.status ?? -1, |
| 47 | }; |
| 48 | } |
| 49 | |
| 50 | describe('update-readme-throughput script', () => { |
| 51 | test('happy path: JSON present → anchor replaced with number', () => { |
no test coverage detected