TypeScript 61.9%
HTML 37.2%
SQL 0.7%
1import { describe, expect, it } from 'vitest';2import meta from './meta.json' with { type: 'json' };3import { localMeta } from '../_lib/local-meta.js';4import { expectMapping, storeSuite } from '../_g4-shops-intl-lib/suite.js';5import createConnector from './index.js';67const parsed = localMeta(meta);8const connector = createConnector(parsed);910describe('kingscomics', () => {11 // Framework fixture suite + store invariants (currency, categories, listings only, stable ids).12 storeSuite(parsed, connector, it, expect);1314 it('maps live-observed titles onto taxonomy slugs and skips accessories/apparel', async () => {15 await expectMapping(parsed, connector, expect, [16 {17 "title": "2005 POKEMON EX UNSEEN FORCES RAIKOU HOLO #114 CGC 10",18 "collection": "cgc",19 "type": "Graded Collectables",20 "tags": [21 "CARD",22 "CGC",23 "GRADED",24 "POKEMON"25 ],26 "expect": "pokemon",27 "grader": "cgc",28 "grade": "10",29 "year": 200530 },31 {32 "title": "CGC DAREDEVIL #1 (8.5) FADED COVER",33 "collection": "cgc",34 "type": "Graded Collectables",35 "tags": [36 "CGC",37 "DAREDEVIL",38 "MARVEL COMICS"39 ],40 "expect": "marvel_comics",41 "grader": "cgc"42 },43 {44 "title": "SPIDER-MAN (1990) #1 DIRECT PSA 9.8",45 "collection": "all-graded-comics",46 "type": "Graded Collectables",47 "tags": [48 "COMICS",49 "GRADED",50 "PSA"51 ],52 "expect": "marvel_comics",53 "grader": "psa",54 "grade": "9.8",55 "year": 199056 },57 {58 "title": "1986 FLEER MAGIC JOHNSON #53 LAKERS PSA 10",59 "collection": "psa",60 "type": "Graded Collectables",61 "tags": [62 "PSA",63 "TC-GRADED"64 ],65 "expect": "other_sports_cards",66 "grader": "psa",67 "grade": "10"68 },69 {70 "title": "1991-92 UPPER DECK BASKETBALL #69 MICHAEL JORDAN EAST ALL-STAR",71 "collection": "trading-card-singles",72 "type": "Trading Cards",73 "tags": [74 "BASKETBALL",75 "TC SINGLE"76 ],77 "expect": "basketball_cards"78 },79 {80 "title": "ABSOLUTE BATMAN (2024) #1",81 "collection": "comics-black-white-color",82 "type": "Comics – Black & White/Color",83 "tags": [84 "DC COMICS",85 "GENRE-SH"86 ],87 "expect": "dc_comics"88 },89 {90 "title": "STAR WARS (2025) #2 JOHN TYLER CHRISTOPHER ACTION FIGURE VAR",91 "collection": "action-figures",92 "type": "Comics",93 "tags": [94 "ACTION FIGURES",95 "MARVEL PRH"96 ],97 "expect": "comics"98 },99 {100 "title": "MARVEL LEGENDS SERIES SECRET WARS WOLVERINE AF",101 "collection": "action-figures",102 "type": "Toys and Models",103 "tags": [104 "ACTION FIGURES",105 "HASBRO",106 "MARVEL"107 ],108 "expect": "action_figures"109 },110 {111 "title": "ALIEN 40TH ANNIVERSARY 2019 2oz SILVER ANTIQUED COLOURED COIN",112 "collection": "coins",113 "type": "Coins & Precious Metals",114 "tags": [115 "PERTH MINT"116 ],117 "expect": "coins"118 },119 {120 "title": "SPIDER-MAN LOGO T-SHIRT XL",121 "collection": "comics-black-white-color",122 "type": "Apparel",123 "expect": null124 }125 ]);126 });127});128