()
| 14 | import { applyPendingNodeDataDirMigrationIfNeeded, NodePathProvider } from './node-path-provider' |
| 15 | |
| 16 | function makeTempDir(): string { |
| 17 | const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir() |
| 18 | return fs.mkdtempSync(path.join(baseDir, 'chatlab-data-switch-')) |
| 19 | } |
| 20 | |
| 21 | function writeFile(filePath: string, content = 'data'): void { |
| 22 | fs.mkdirSync(path.dirname(filePath), { recursive: true }) |
no outgoing calls
no test coverage detected