Skip to content

test(dropzone): isolate hydration SSR setup - #759

Merged
leonidaz merged 1 commit into
mainfrom
test/dropzone-hydration-setup
Aug 14, 2026
Merged

leonidaz merged 1 commit into
mainfrom
test/dropzone-hydration-setup

Conversation

@leonidaz

@leonidaz leonidaz commented Aug 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • prepare the Dropzone hydration fixture in beforeAll
  • keep the hydration and interactivity assertion on Vitest's default five-second timeout
  • give only the real Vite SSR preparation a 30-second CI-load budget

Why

  • the linked CI shard timed out while the test was performing real Vite SSR compilation and teardown inside the behavioral test budget
  • Vite middleware mode has no listening socket to await; createServer() and ssrLoadModule() are already awaited by the fixture helper

Changes

  • move server HTML generation out of the test body and into a bounded setup hook
  • retain the existing DOM adoption, focus, file selection, callback, and diagnostic assertions unchanged

Validation

  • pnpm format:check (not run; scoped formatting passed)
  • pnpm typecheck (not run; scoped typecheck passed)
  • pnpm test (not run; targeted Dropzone project passed)
  • targeted tests: Dropzone project, 98/98 tests
  • targeted tests: hydration probe through vitest.ci-sharded.config.js
  • pnpm react-parity:validate
  • pnpm sync

Risk / follow-ups

  • Low: test-only lifecycle change. The fixture helper still closes its Vite server in finally before the test begins.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Test-only lifecycle change; production dropzone code and assertion behavior are unchanged.

Overview
Moves Vite SSR HTML generation out of the hydration test body so CI no longer hits Vitest’s default five-second limit while compiling the server module graph.

Shared onDrop/props and a serverHtml cache are prepared once in beforeAll with a 30s budget; the existing it still only checks DOM adoption, focus, file change → onDrop, and no console.error, unchanged on the default timeout.

Reviewed by Cursor Bugbot for commit 9bffc49. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 14, 2026

Copy link
Copy Markdown

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

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
octane-website Skipped Skipped Aug 14, 2026 8:00pm
octane-website-mcp Skipped Skipped Aug 14, 2026 8:00pm

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 14, 2026
@leonidaz
leonidaz marked this pull request as ready for review August 14, 2026 20:02
@leonidaz
leonidaz merged commit 63eb788 into main Aug 14, 2026
49 checks passed
@leonidaz
leonidaz deleted the test/dropzone-hydration-setup branch August 14, 2026 20:17

This branch was previously deployed

2 inactive deployments
Preview – octane-website — 9bffc49a Deployed Aug 14, 2026 by vercel[bot]
Preview – octane-website-mcp — 9bffc49a Deployed Aug 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant