Commit ec2c139
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_017FGqcDvhJ6HEFpT7WRwqib1 parent 1534cab commit ec2c139
18 files changed
Lines changed: 2357 additions & 154 deletions
File tree
- configurator
- scripts
- src
- components
- lib
- tests-components
- tests-e2e
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments