Skip to content

test(internal/site): initialize lexical input tests after DOM setup#303

Open
jdomeracki-coder wants to merge 1 commit into
mainfrom
fix/lexical-input-test-setup
Open

test(internal/site): initialize lexical input tests after DOM setup#303
jdomeracki-coder wants to merge 1 commit into
mainfrom
fix/lexical-input-test-setup

Conversation

@jdomeracki-coder

Copy link
Copy Markdown
Contributor

Summary

  • Initialize the Lexical input component tests after happy-dom globals are installed.
  • Dynamically load the input components in the affected tests so Bun does not evaluate Lexical before the test DOM exists.
  • Restore the additional global after each test file completes.

Validation

  • bunx biome check internal/site/components/chat-multimodal-input.test.tsx internal/site/components/chat-message-input.test.tsx
  • bunx bun@1.3.14 test internal/site/components/preview-attachment.test.tsx internal/site/components/message-actions.test.tsx internal/site/components/user-selector.test.tsx internal/site/components/chat-multimodal-input.test.tsx internal/site/components/markdown.test.tsx internal/site/components/chat-message-input.test.tsx
  • bun run typecheck
  • bun run format:check

Generated by Coder Agents.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blink Ready Ready Preview, Comment Jun 22, 2026 9:08pm

Request Review

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