Repository navigation
v2.0.4
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.jsonnow includes thedemosdirectory.tsconfig.node.jsonnow includesvitest.config.ts,tsdown.config.ts, anddemos/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 testnow gates bothci.ymlandpublish.yml.- Vitest’s
includeglob 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/treeandutils/ast/helpers. - Added guards for the
usePreviewanduseErrorcontext 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