import { describe, expect, it } from 'vitest'; import meta from './meta.json' with { type: 'json' }; import { localMeta } from '../_lib/local-meta.js'; import { expectMapping, storeSuite } from '../_g4-shops-intl-lib/suite.js'; import createConnector from './index.js'; const parsed = localMeta(meta); const connector = createConnector(parsed); describe('footdistrict', () => { // Framework fixture suite + store invariants (currency, categories, listings only, stable ids). storeSuite(parsed, connector, it, expect); it('maps live-observed titles onto taxonomy slugs and skips accessories/apparel', async () => { await expectMapping(parsed, connector, expect, [ { "title": "Air Jordan 7 Retro \"MirĂ³\"", "collection": "sneakers-jordan", "type": "Calzado", "vendor": "Jordan", "variant": "42", "expect": "nike_jordan", "brand": "Jordan" }, { "title": "Nike Dunk Low Retro Premium \"Corduroy\"", "collection": "sneakers", "type": "Calzado", "vendor": "Nike", "expect": "nike_jordan", "brand": "Nike" }, { "title": "Samba OG \"Cloud White\"", "collection": "sneakers-adidas-samba", "type": "Calzado", "vendor": "adidas", "expect": "adidas_yeezy", "brand": "adidas" }, { "title": "Gel-Kayano 14 \"Cream\"", "collection": "sneakers", "type": "Calzado", "vendor": "ASICS", "expect": "sneakers" }, { "title": "Medicom Toy Be@rbrick CANOTWAIT William Chan 400%", "collection": "art-toys", "type": "Lifestyle", "vendor": "Medicom Toy", "expect": "designer_toys" }, { "title": "Gorra Nike ACG Club Unisex", "collection": "sneakers", "type": "Accesorios", "expect": null } ]); }); });