MCPcopy Index your code
hub / github.com/cloudconvert/cloudconvert-cli / createFakeCloudConvertClient

Function createFakeCloudConvertClient

test/helpers.ts:34–51  ·  view source on GitHub ↗
(credits = 42)

Source from the content-addressed store, hash-verified

32}
33
34export function createFakeCloudConvertClient(credits = 42): CloudConvertClient {
35 return {
36 call: vi.fn(),
37 jobs: {
38 create: vi.fn(),
39 get: vi.fn(),
40 subscribeEvent: vi.fn(),
41 subscribeTaskEvent: vi.fn()
42 },
43 tasks: {
44 upload: vi.fn()
45 },
46 users: {
47 me: vi.fn(async () => ({ credits }))
48 },
49 closeSocket: vi.fn()
50 };
51}
52
53export function createSilentLogger(): CliDependencies['logger'] {
54 return {

Callers 3

cli.test.tsFile · 0.85
parseJobCommandFunction · 0.85
job.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 1

parseJobCommandFunction · 0.68