(versionOutput: string)
| 183 | } |
| 184 | |
| 185 | function runVersionCheck(versionOutput: string): string { |
| 186 | const stub = tempStubCodex(versionOutput); |
| 187 | try { |
| 188 | const r = runProbe({ |
| 189 | snippet: '_gstack_codex_version_check', |
| 190 | env: { PATH: `${stub.pathEntry}:${process.env.PATH}` }, |
| 191 | }); |
| 192 | return r.stdout + r.stderr; |
| 193 | } finally { |
| 194 | fs.rmSync(stub.dir, { recursive: true, force: true }); |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | describe('gstack-codex-probe: version check (anchored regex per Tension I)', () => { |
| 199 | // Matches (should WARN) |
no test coverage detected