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('toyzeroplus', () => { // 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": "Daruma PP BABY (Ivory edition)", "collection": "art-toy", "type": "Art Toy", "vendor": "TOYZEROPLUS", "tags": [ "Artist_aaaz" ], "expect": "designer_toys", "brand": "TOYZEROPLUS" }, { "title": "Ultraman Kaiju Daruma Series Vol.1", "collection": "blind-box", "type": "Blind Box", "variant": "Set", "expect": "designer_toys" }, { "title": "200% PP Lucky Cat Daruma (Black Cat Edition)", "collection": "pp-baby", "type": "Art Toy", "expect": "designer_toys", "series": "PP Baby" }, { "title": "Lulu the Piggy Canvas Tote Bag", "collection": "lulu-the-piggy", "type": "Side Product", "expect": null } ]); }); });