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

Function exists

__tests__/extraction.test.ts:8088–8088  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

8086 it('finds the theme a file is in from the theme folder it sits in', () => {
8087 const markers = new Set(['layout/theme.liquid', 'examples/tailwind/config/settings_schema.json']);
8088 const exists = (relativePath: string): boolean => markers.has(relativePath);
8089 expect(shopifyThemeRoot('sections/header.liquid', exists)).toBe('');
8090 expect(shopifyThemeRoot('templates/customers/login.json', exists)).toBe('');
8091 expect(shopifyThemeRoot('examples/tailwind/snippets/icon.liquid', exists)).toBe('examples/tailwind');

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected