Skip to content

Commit ec2c139

Browse files
committed
fix(ci): add test infrastructure and fix lint exclusion for configurator v2
Lint CSS: - Exclude configurator-archive/** from stylelint (same treatment as configurator/**) to silence the 89 Tailwind/legacy CSS errors Configurator tests: - Add vitest + @playwright/test + @testing-library/svelte to devDependencies - Add test, test:unit, test:components, pretest:e2e, test:e2e, check:curation scripts to configurator/package.json - vitest.config.js: jsdom env, __SLASHED_VERSION__ define, both tests/ and tests-components/ included; playwright.config.js: 3 engines, preview server - tests/codec.test.js: encode/decode round-trip, URL-safety, error resilience - tests/css.test.js: sanitizeValue, generateCSS, parseCSS - tests/share.test.js: encodeOverrides/readShareFromHash/buildShareUrl round-trip - tests/smoke.test.js: api-index, token-registry, bundles data integrity - tests/curation.test.js: asserts every public knob has a home domain - tests-components/header.test.js: StudioHeader component rendering - tests-e2e/shell.spec.js: load, sidebar nav, undo/redo/share controls - src/lib/domains.ts: extract DOMAIN_PATTERNS from DomainPanel (shared source of truth); DomainPanel.svelte imports from it - src/lib/codec.ts: add named export aliases (encode, decode, sanitizeValue, generateCSS, parseCSS, encodeOverrides, buildShareUrl, readShareFromHash) - scripts/check-curation.mjs: replace broken domains.js import with inline DOMAIN_PATTERNS; fix isExplicitlyClassified to include misc; expand patterns to cover all 686 framework tokens (was 103 orphans, now 0) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017FGqcDvhJ6HEFpT7WRwqib
1 parent 1534cab commit ec2c139

18 files changed

Lines changed: 2357 additions & 154 deletions

.stylelintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": ["stylelint-config-standard"],
3-
"ignoreFiles": ["dist/**", "node_modules/**", "configurator/**"],
3+
"ignoreFiles": ["dist/**", "node_modules/**", "configurator/**", "configurator-archive/**"],
44
"rules": {
55
"color-function-notation": "modern",
66
"alpha-value-notation": "number",

0 commit comments

Comments
 (0)