Skip to content

v2.0.4

Choose a tag to compare

@github-actions github-actions released this 05 Sep 13:10
· 331 commits to main since this release
b3cd374

Live Editor v2.0.4 – This patch tightens type‑checking coverage and guarantees that component‑layer tests run reliably in CI.

  • Type‑checking improvements

    • tsconfig.app.json now includes the demos directory.
    • tsconfig.node.json now includes vitest.config.ts, tsdown.config.ts, and demos/vite.config.ts.
    • tsc -b (and CI’s type check) now covers the demo code and three of the four build config files, eliminating the silent skipping of ~1 k LOC of demo code.
  • Test suite updates

    • pnpm test now gates both ci.yml and publish.yml.
    • Vitest’s include glob matches .test.tsx, so component tests can no longer be silently skipped.
    • A jsdom environment (opt‑in per file) and Testing Library are now available.
    • Backfilled tests for utils/ast/tree and utils/ast/helpers.
    • Added guards for the usePreview and useError context hooks.

What's Changed

  • ✅ test: run tests in CI and unblock component-layer testing by @pjb0811 in #290
  • 🔧 build: type-check demos and the remaining build configs by @pjb0811 in #292
  • 🔖 chore: version packages by @github-actions[bot] in #291

Full Changelog: v2.0.3...v2.0.4