(sessionId: string, contents: string)
| 309 | }); |
| 310 | |
| 311 | function writePidFile(sessionId: string, contents: string): void { |
| 312 | const pidFile = getPidFilePath(sessionId); |
| 313 | fs.mkdirSync(path.dirname(pidFile), {recursive: true}); |
| 314 | fs.writeFileSync(pidFile, contents); |
| 315 | } |
| 316 | |
| 317 | describe('getDaemonPid', () => { |
| 318 | it('returns null when no pid file exists', () => { |
no test coverage detected