Skip to content

Docs: refresh README and export guide #18

Docs: refresh README and export guide

Docs: refresh README and export guide #18

Triggered via pull request February 5, 2026 17:53
Status Failure
Total duration 26s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/export/index.test.ts > Export Functions > exportToJSON > should export with default options and no collections: src/export/index.test.ts#L16
AssertionError: expected "spy" to be called with arguments: [ { type: 'EXPORT_RESULT', …(2) } ] Received: 1st spy call: @@ -11,16 +11,7 @@ }, "fileName": "theme.json", }, ], "type": "EXPORT_RESULT", - "validation": { - "details": { - "errors": [], - "isValid": true, - "warnings": [], - }, - "isValid": true, - "message": "✅ Theme.json validation passed!", - }, }, ] Number of calls: 1 ❯ src/export/index.test.ts:16:46
src/color/index.test.ts > getAllColorPresets > should sort by collection name then by color name: src/color/index.test.ts#L778
AssertionError: expected [ { id: 'var1', name: 'Zebra', …(5) } ] to have a length of 2 but got 1 - Expected + Received - 2 + 1 ❯ src/color/index.test.ts:778:20
src/color/index.test.ts > getAllColorPresets > should return color presets with collection info and resolved colors: src/color/index.test.ts#L655
AssertionError: expected { id: 'var2', …(6) } to deeply equal { id: 'var2', …(6) } - Expected + Received @@ -1,8 +1,8 @@ { "collectionName": "wp.settings.color", - "color": "var(--wp--custom--color--secondary--accent)", + "color": "var(--wp--custom--color--secondary-accent)", "id": "var2", "isWordPressSettings": true, "name": "Secondary Accent", "resolvedColor": "#00ff00", "slug": "secondary-accent", ❯ src/color/index.test.ts:655:27
src/color/index.test.ts > getColorPresets > should filter by selected color IDs: src/color/index.test.ts#L449
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ src/color/index.test.ts:449:18
src/color/index.test.ts > getColorPresets > should get color presets with paint style labels: src/color/index.test.ts#L389
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ src/color/index.test.ts:389:18
src/color/index.test.ts > getColorPresets > should filter colors by selectedColorIds when provided: src/color/index.test.ts#L335
AssertionError: expected { name: 'Primary', …(2) } to deeply equal { name: 'Primary', …(2) } - Expected + Received { - "color": "var(--wp--preset--color--primary)", + "color": "var(--wp--custom--color--primary)", "name": "Primary", "slug": "primary", } ❯ src/color/index.test.ts:335:21
src/color/index.test.ts > getColorPresets > should exclude primitives collection but include other collections: src/color/index.test.ts#L279
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ src/color/index.test.ts:279:18
src/color/index.test.ts > getColorPresets > should skip non-color variables: src/color/index.test.ts#L172
AssertionError: expected { name: 'Primary', …(2) } to deeply equal { name: 'Primary', …(2) } - Expected + Received { - "color": "var(--wp--preset--color--primary)", + "color": "var(--wp--custom--color--primary)", "name": "Primary", "slug": "primary", } ❯ src/color/index.test.ts:172:21
src/color/index.test.ts > getColorPresets > should handle both variable aliases and direct color values: src/color/index.test.ts#L126
AssertionError: expected { name: 'Alias', slug: 'alias', …(1) } to deeply equal { name: 'Alias', slug: 'alias', …(1) } - Expected + Received { - "color": "var(--wp--preset--color--alias)", + "color": "var(--wp--custom--color--alias)", "name": "Alias", "slug": "alias", } ❯ src/color/index.test.ts:126:21
src/color/index.test.ts > getColorPresets > should generate color presets from color variables: src/color/index.test.ts#L71
AssertionError: expected { name: 'Primary 500', …(2) } to deeply equal { name: 'Primary 500', …(2) } - Expected + Received { - "color": "var(--wp--preset--color--primary-500)", + "color": "var(--wp--custom--color--primary--500)", "name": "Primary 500", "slug": "primary-500", } ❯ src/color/index.test.ts:71:21