MCPcopy Create free account
hub / github.com/cloudflare/computer / stubFs

Function stubFs

packages/computer/src/git/index.test.ts:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17const opaqueProvider = {} as unknown as SQLiteWorkspaceProvider;
18
19function stubFs(): IsomorphicGitFSClient {
20 return {
21 promises: {
22 readFile: vi.fn(async () => new Uint8Array()),
23 },
24 };
25}
26
27describe("createGitClient", () => {
28 it("calls ws.provider() lazily on first use, then caches the FsClient", async () => {

Callers 1

index.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected