Skip to content

feat: preview workspace component#521

Merged
temma02 merged 1 commit intoStellerCraft:mainfrom
starkiVector-090:issue-21-preview-workspace-component
Apr 29, 2026
Merged

feat: preview workspace component#521
temma02 merged 1 commit intoStellerCraft:mainfrom
starkiVector-090:issue-21-preview-workspace-component

Conversation

@starkiVector-090
Copy link
Copy Markdown
Contributor

Here's what was done:

Root causes:

  1. vitest.config.ts was missing @craft/types and @craft/stellar source aliases — the
    test runner couldn't resolve these workspace packages since they have no built dist/
  2. PreviewWorkspace.test.tsx used jest.mock (Jest API) instead of vi.mock (Vitest API)
  3. PreviewWorkspace.test.ts contained JSX in a .ts file (esbuild rejects this) and was
    a duplicate of the .tsx test

Changes made:

  • vitest.config.ts — added @craft/types and @craft/stellar aliases pointing to their
    source directories
  • PreviewWorkspace.test.tsx — replaced jest.mock with vi.mock, added
    vi/describe/it/expect/beforeEach imports from vitest
  • Deleted PreviewWorkspace.test.ts — it was a duplicate with broken JSX-in-.ts syntax

The preview workspace components themselves (PreviewWorkspace, PreviewControls,
PreviewIframe) were already correctly implemented and needed no changes.
closes #21

@temma02 temma02 merged commit 69fdf76 into StellerCraft:main Apr 29, 2026
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.

Issue 021: Implement preview workspace components

2 participants