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('goblingames-nz', () => { // 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": "Misdirection [Mercadian Masques] Foil", "collection": "mtg-singles-in-stock", "type": "MTG Single", "variant": "Lightly Played Foil", "expect": "magic_the_gathering", "name": "Misdirection", "set": "Mercadian Masques", "conditionRaw": "Lightly Played" }, { "title": "Forcefield [Unlimited Edition]", "collection": "mtg-singles-in-stock", "type": "MTG Single", "variant": "NM-Mint", "expect": "magic_the_gathering", "set": "Unlimited Edition" }, { "title": "Aaron's Collection 088/111 - Rising Rivals", "collection": "pokemon-tcg-single-cards", "type": "Pokemon Single", "tags": [ "Brand_Pokemon", "Number_88" ], "variant": "Lightly Played", "expect": "pokemon", "set": null, "conditionRaw": "Lightly Played" }, { "title": "Overwhelming Barrage | (092/252) [Spark of Rebellion]", "collection": "star-wars-unlimited-single-cards", "type": "Star Wars: Unlimited Single", "variant": "NM-Mint", "expect": "star_wars_tcg", "name": "Overwhelming Barrage", "set": "Spark of Rebellion", "number": "092/252" }, { "title": "Blue-Eyes White Dragon [SDKS-EN009] Common", "collection": "yugioh-single-cards", "type": "Yugioh Single", "variant": "NM-Mint Unlimited", "expect": "yugioh", "name": "Blue-Eyes White Dragon" }, { "title": "Dragon Shield Dual Matte Sleeves - Ruin", "collection": "magic-the-gathering-sealed", "type": "Accessories", "expect": null } ]); }); });