MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / fakeStats

Function fakeStats

packages/cli/src/utils/renderArgs.test.ts:27–32  ·  view source on GitHub ↗

Build a fake `Stats` for the in-memory stat adapter.

(kind: "file" | "directory")

Source from the content-addressed store, hash-verified

25
26/** Build a fake `Stats` for the in-memory stat adapter. */
27function fakeStats(kind: "file" | "directory"): Stats {
28 return {
29 isFile: () => kind === "file",
30 isDirectory: () => kind === "directory",
31 } as Stats;
32}
33
34/**
35 * Build a stat adapter from a path → kind map. Throws ENOENT for any

Callers 1

makeStatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected