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('overkillshop', () => { // 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 1 Mid GS", "collection": "jordan-sneaker", "type": "Overkill Archive", "vendor": "Jordan", "tags": [ "554725-079", "Archive" ], "variant": "36", "expect": "nike_jordan", "brand": "Jordan" }, { "title": "Fulcrum Star", "collection": "sneaker", "type": "Low Top Sneakers", "vendor": "Karhu", "tags": [ "Karhu", "Low Tops" ], "expect": "new_balance_asics_other" }, { "title": "Handball Spezial", "collection": "sneaker", "type": "Low Top Sneakers", "vendor": "adidas", "tags": [ "adidas" ], "expect": "adidas_yeezy", "brand": "adidas" }, { "title": "Be@rbrick Girl with a Pearl Earring 1000%", "collection": "medicom", "type": "Collectibles & Toys", "vendor": "Medicom", "expect": "designer_toys" }, { "title": "Cutline Hoodie", "collection": "sneaker", "type": "Apparel", "vendor": "adidas", "expect": null } ]); }); });