| 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'); |