(config)
| 6 | const ok = (name) => { console.log(` ok - ${name}`); passed++ } |
| 7 | |
| 8 | function makeRunner(config) { |
| 9 | const systemMessages = [] |
| 10 | const runner = new HookRunner({ |
| 11 | cwd: process.cwd(), |
| 12 | sessionId: "test-session", |
| 13 | transcriptPath: "/tmp/test-session.json", |
| 14 | config, |
| 15 | onSystemMessage: (message, isError) => systemMessages.push({ message, isError }), |
| 16 | }) |
| 17 | return { runner, systemMessages } |
| 18 | } |
| 19 | |
| 20 | // 1. No config -> no-op |
| 21 | { |