(file: string)
| 7816 | expect(cg.getFileDependents('theme/sections/main-product.liquid')).toEqual(['theme/templates/product.json']); |
| 7817 | // Extracting without storing tells them apart the same way. |
| 7818 | const refsOf = (file: string) => cg.extractFromSource(file, jsonTemplate('main-product')).unresolvedReferences.map((r) => r.referenceName); |
| 7819 | expect(refsOf('theme/templates/product.json')).toEqual(['sections/main-product.liquid']); |
| 7820 | expect(refsOf('tools/templates/product.json')).toEqual([]); |
| 7821 | }); |
no test coverage detected