()
| 1027 | }); |
| 1028 | |
| 1029 | function tempPath(): string { |
| 1030 | dir = mkdtempSync(path.join(tmpdir(), "session-key-")); |
| 1031 | return path.join(dir, "nested", "session-api-key.txt"); |
| 1032 | } |
| 1033 | |
| 1034 | it("creates the file (and parent dirs) with a hex key on first call", () => { |
| 1035 | const filePath = tempPath(); |