fs-stats-spys
Version:
Helper for using sinon spys with fs.Stats
18 lines (17 loc) • 470 B
text/typescript
import type { BigIntStats, Dirent, Stats } from 'fs';
export default function statsSpys(): {
(stats: Stats | BigIntStats | Dirent): void;
dir: {
(_stats?: Stats | BigIntStats | Dirent): void;
callCount: number;
};
file: {
(_stats?: Stats | BigIntStats | Dirent): void;
callCount: number;
};
link: {
(_stats?: Stats | BigIntStats | Dirent): void;
callCount: number;
};
callCount: number;
};