15 lines
323 B
TypeScript
15 lines
323 B
TypeScript
export function tmpFile(basename: string) {
|
|
const file = path.join(
|
|
import.meta.dirname,
|
|
"../../.clover/testing",
|
|
basename,
|
|
);
|
|
return {
|
|
path: file,
|
|
read: fs.readFile.bind(fs, file),
|
|
write: fs.writeMkdir.bind(fs, file),
|
|
};
|
|
}
|
|
|
|
import * as path from "node:path";
|
|
import * as fs from "./fs.ts";
|