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