(payload: Record<string, unknown>)
| 45 | } |
| 46 | |
| 47 | function logQuestion(payload: Record<string, unknown>): number { |
| 48 | const res = spawnSync(BIN_LOG, [JSON.stringify(payload)], { |
| 49 | env: { ...process.env, GSTACK_HOME: tmpHome }, |
| 50 | encoding: 'utf-8', |
| 51 | cwd: ROOT, |
| 52 | }); |
| 53 | return res.status ?? -1; |
| 54 | } |
| 55 | |
| 56 | function writeLegacyProfile(sessions: Array<Record<string, unknown>>) { |
| 57 | const content = sessions.map((s) => JSON.stringify(s)).join('\n') + '\n'; |
no test coverage detected