MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / createInlineMock

Function createInlineMock

packages/@stdlib/testing/src/inline-mock.ts:3–9  ·  view source on GitHub ↗
(fn: (mock: any) => any)

Source from the content-addressed store, hash-verified

1import { createSmartMock } from './smart-mock';
2
3export function createInlineMock(fn: (mock: any) => any) {
4 const smartMock = createSmartMock();
5
6 fn(smartMock);
7
8 return smartMock;
9}

Callers 1

Calls 1

createSmartMockFunction · 0.90

Tested by

no test coverage detected