Skip to content

test(themes): port the theme catalog helper tests - #63

Merged
Jess Sullivan (Jesssullivan) merged 1 commit into
mainfrom
test/port-theme-catalog-tests-20261010
Oct 14, 2026
Merged

Jess Sullivan (Jesssullivan) merged 1 commit into
mainfrom
test/port-theme-catalog-tests-20261010

Conversation

@Jesssullivan

Copy link
Copy Markdown
Contributor

Ports tests/unit/themes.test.ts from the monorepo (xoxd-ai/tinyland.dev c85b77f4/54091c5b). It tests getThemePreset, getThemePreviewColors, getThemeVectorColors, getThemeCatalogEntry and getThemeCatalog. Until now no standalone ref tested the catalog helpers.

The file is ported verbatim. Its expected values match src/themes/index.ts and src/core/theme-presets.ts at main: labels, descriptions, swatches and display order.

Not ported: the monorepo vitest.config.ts change from 92f115ce (threads pool, deps.interopDefault, inline @fast-check/vitest). That change worked around @fast-check/vitest inside the monorepo Bazel sandbox. This repo imports fast-check directly, and its forks-pool config is green on main.

tinyland.dev c85b77f4/54091c5b added tests/unit/themes.test.ts for
getThemePreset, getThemePreviewColors, getThemeVectorColors,
getThemeCatalogEntry and getThemeCatalog. No standalone ref tests the
catalog helpers.

Ported verbatim. The expected presets, descriptions, swatches and display
order match src/themes/index.ts and src/core/theme-presets.ts at main. The
monorepo vitest.config.ts pool/inline change (92f115ce) is not ported: it
targeted @fast-check/vitest under the monorepo Bazel sandbox, and this repo
uses fast-check directly with its own green forks-pool config.
@Jesssullivan
Jess Sullivan (Jesssullivan) merged commit 299523a into main Oct 14, 2026
7 checks passed
@linear-code

linear-code Bot commented Oct 14, 2026

Copy link
Copy Markdown

TIN-6391

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant