| 1 | export function tmpFile(basename: string) { |
| 2 | const file = path.join( |
| 3 | import.meta.dirname, |
| 4 | "../../.clover/testing", |
| 5 | basename, |
| 6 | ); |
| 7 | return { |
| 8 | path: file, |
| 9 | read: fs.readFile.bind(fs, file), |
| 10 | write: fs.writeMkdir.bind(fs, file), |
| 11 | }; |
| 12 | } |
| 13 | |
| 14 | import * as path from "node:path"; |
| 15 | import * as fs from "./fs.ts"; |