Skip to content

test(workerd): cover JSX Suspense streaming (#5352) - #5492

Open
spideydotjs wants to merge 1 commit into
honojs:mainfrom
spideydotjs:test/workerd-jsx-streaming-5352
Open

spideydotjs wants to merge 1 commit into
honojs:mainfrom
spideydotjs:test/workerd-jsx-streaming-5352

Conversation

@spideydotjs

Copy link
Copy Markdown

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run check:fix to format and lint the code (scoped format and lint checks were run instead)
  • Add TSDoc/JSDoc to document the code (not applicable to this test-only change)

What & why

Refs #5352.

Hono already has JSX streaming and Suspense support. This change adds a Workerd integration route and test to verify that the stream can render the loading fallback and the resolved Suspense replacement content, including the response content type, in the Cloudflare Workers runtime.

Validation

  • pnpm run test:workerd — passed (5 tests).
  • pnpm exec tsc -p runtime-tests/workerd/tsconfig.json — passed.
  • pnpm exec vp lint runtime-tests/workerd/index.ts runtime-tests/workerd/index.test.ts — passed.
  • pnpm exec vp fmt --check runtime-tests/workerd/index.ts runtime-tests/workerd/index.test.ts && git diff --check — passed.
  • pnpm run test — failed: 5,179 passed, 44 skipped, 3 timed out. The timeouts were in build/declaration-emit.test.ts and two cases in build/jsx-types.test.ts; these still timed out when run in isolation.
  • pnpm run check — failed with 0 errors and 58 lint warnings across 456 files; the changed files were clean under the focused lint command above.

@spideydotjs
spideydotjs force-pushed the test/workerd-jsx-streaming-5352 branch from ac32d40 to 11d5c1b Compare September 30, 2026 18:59
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