MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / mockConfigFile

Function mockConfigFile

packages/shared/src/utils.test.ts:12–16  ·  view source on GitHub ↗
(settings?: object)

Source from the content-addressed store, hash-verified

10}));
11
12const mockConfigFile = (settings?: object) => {
13 vi.mocked(readFile).mockResolvedValueOnce(
14 JSON.stringify(settings !== undefined ? { settings } : {}) as any
15 );
16};
17
18describe('getConfigSettings', () => {
19 beforeEach(() => {

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected