12 lines
306 B
TypeScript
12 lines
306 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';
|