MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / resolvableInstance

Function resolvableInstance

src/test/datascience/helpers.ts:340–345  ·  view source on GitHub ↗
(mockedValue: T)

Source from the content-addressed store, hash-verified

338}
339
340export function resolvableInstance<T>(mockedValue: T): T {
341 const instanceValue = instance<T>(mockedValue);
342 // eslint-disable-next-line @typescript-eslint/no-explicit-any
343 (instanceValue as any).then = undefined;
344 return instanceValue;
345}

Calls

no outgoing calls

Tested by 3

crateMockedPythonApiFunction · 0.72
createJupyterSessionFunction · 0.72