Skip to content

chore: add ui test runner, run tests in CI, fix stale agent docs - #157

Merged
tmccoy14 merged 1 commit into
mainfrom
chore/test-runner-and-agent-docs
Sep 24, 2026
Merged

tmccoy14 merged 1 commit into
mainfrom
chore/test-runner-and-agent-docs

Conversation

@tmccoy14

Copy link
Copy Markdown
Contributor

Tooling and docs housekeeping, split out of feat/select-search so that PR can stay focused on the feature. Nothing here changes the published library, so there's no changelog entry or version bump.

Tests

  • Adds Vitest, jsdom and Testing Library as dev dependencies of @eqtylab/equality, with config in packages/ui/vitest.config.ts and tests under packages/ui/tests/. Tests live outside src, so they're never bundled or published (files is dist only).
  • Adds a root pnpm test (pnpm -r run test) and a Test step in the Code Quality workflow. The docs package's 103 existing tests have never run in CI; now they do.
  • The ui script is vitest run --passWithNoTests for now, because the first suite lands with feat/select-search. That PR drops the flag.

Agent docs

  • AGENTS.md (CLAUDE.md links to it):
    • the docs path is now packages/demo/src/content/docs/components (it was missing docs/);
    • the llms.txt and .md routes now point at packages/docs/src/runtime/routes (the old path no longer exists);
    • the unfinished "Tokens are automatically built by the" sentence is completed;
    • pnpm build and pnpm dev are described correctly.
  • create-component skill: same docs path fix.
  • equality-design-system skill: adds the name translation table that AGENTS.md tells contributors to update. Until now the table didn't exist. It starts with ten mappings (modal → Dialog, drawer → Sheet, chip → Badge and so on), each checked against an actual export. Also fixes a stray backtick on DateRangePicker.

Config

  • Removes baseUrl from the demo tsconfig (deprecated in TypeScript 6) and makes the paths entries relative. The demo type errors are the same before and after (17 existing ones in astro.config.mjs), and the Astro build resolves every alias.

Verification

pnpm lint, pnpm format:check, pnpm build and pnpm test all pass locally on Node 24. The docs tests use Node's built-in TypeScript support, which needs Node 22.18 or later; CI's node-version: 22 should resolve to a new enough release, but it's worth confirming on this PR's run.

🤖 Generated with Claude Code

- Add Vitest, jsdom and Testing Library to @eqtylab/equality, with a
  root `pnpm test` that runs every package's tests. The ui script passes
  with no tests until the first suite lands.
- Run `pnpm test` in the Code Quality workflow, so the docs package's
  existing tests run in CI for the first time.
- AGENTS.md: correct the docs path and the llms.txt route, finish the
  truncated tokens sentence, and fix the build/dev instructions.
- create-component skill: correct the docs path.
- equality-design-system skill: add the name translation table that
  AGENTS.md refers to.
- Demo tsconfig: drop `baseUrl`, deprecated in TypeScript 6.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@tmccoy14 tmccoy14 self-assigned this Sep 24, 2026

@matthewmr-eqty matthewmr-eqty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Tucker. Nice to have the tests running in CI now.

@tmccoy14
tmccoy14 merged commit 8945558 into main Sep 24, 2026
1 check passed
@tmccoy14
tmccoy14 deleted the chore/test-runner-and-agent-docs branch September 24, 2026 14:01
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.

2 participants