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('ninoma', () => { // 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": "Nendoroid \"Blue Archive\" Asagi Mutsuki", "collection": "figures-companies-good-smile-company-nendoroid", "type": "Figure", "vendor": "Good Smile Company", "expect": "action_figures", "series": "Nendoroid", "brand": "Good Smile Company" }, { "title": "\"Berserk\" figma#410 Guts Kyousenshi Armor Ver. Repainting Skull Edition", "collection": "figma", "type": "Figure", "vendor": "Max Factory", "expect": "action_figures", "series": "figma" }, { "title": "\"Overlord\" elCOCO 1/7 Scale Figure Albedo", "collection": "scale-figures", "type": "Figure", "vendor": "elCOCO", "expect": "action_figures", "series": "Scale Figure", "brand": "elCOCO" }, { "title": "HG 1/144 \"Mobile Suit Gundam: The Witch from Mercury\" Gundam Aerial", "collection": "gundam-model-kits-gunpla", "type": "Model Kits", "vendor": "Bandai", "expect": "gundam", "franchise": "Gundam" }, { "title": "\"Pokemon Card Game MEGA\" Expansion Pack Munikis Zero / Nullifying Zero", "collection": "pokemon-tcg", "type": "TCG", "vendor": "Pokemon", "expect": "pokemon" }, { "title": "Nintendo Switch \"Pokemon Legends Z-A\"", "collection": "video-games", "type": "Video Games", "vendor": "Nintendo", "expect": "nintendo_games" }, { "title": "\"Jujutsu Kaisen\" Acrylic Stand Gojo Satoru", "collection": "figures-for-sale", "type": "Character Goods", "expect": null } ]); }); });