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

Function exists

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

Source from the content-addressed store, hash-verified

8089 it('finds the theme a file is in from the theme folder it sits in', () => {
8090 const markers = new Set(['layout/theme.liquid', 'examples/tailwind/config/settings_schema.json']);
8091 const exists = (relativePath: string): boolean => markers.has(relativePath);
8092 expect(shopifyThemeRoot('sections/header.liquid', exists)).toBe('');
8093 expect(shopifyThemeRoot('templates/customers/login.json', exists)).toBe('');
8094 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