(prefix: string)
| 46 | /** A temp dir removed when the test ends. `try/finally` would do the same, but the repo's |
| 47 | * no-try-catch-or-throw rule rejects the construct and a registered hook reads better. */ |
| 48 | const tempDir = (prefix: string) => { |
| 49 | const dir = mkdtempSync(join(tmpdir(), prefix)); |
| 50 | onTestFinished(() => rmSync(dir, { recursive: true, force: true })); |
| 51 | return dir; |
| 52 | }; |
| 53 | |
| 54 | describe("electron-store configFileMode", () => { |
| 55 | it("creates the settings file owner-only", () => { |
no outgoing calls
no test coverage detected