MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / stub

Function stub

__tests__/sync-import-binding-retry.test.ts:160–161  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

158
159/** A module before the edit that gives it what its importers import. */
160const stub = (file: string): string =>
161 file.endsWith('.vue') ? '<template><p></p></template>\n' : /\.(svelte|astro)$/.test(file) ? '<p></p>\n' : 'export const placeholder = 1;\n';
162
163describe('sync links references through an import binding to their module', () => {
164 it('when the module is added after its importers', async () => {

Calls

no outgoing calls

Tested by

no test coverage detected