Skip to content

test : Runtime SSR Testing Improvements#756

Open
OS-paulvisciano wants to merge 5 commits into
stenciljs:mainfrom
OS-paulvisciano:testing-improvements
Open

test : Runtime SSR Testing Improvements#756
OS-paulvisciano wants to merge 5 commits into
stenciljs:mainfrom
OS-paulvisciano:testing-improvements

Conversation

@OS-paulvisciano

Copy link
Copy Markdown
Contributor

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally for affected output targets
  • Tests (npm test) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):
    • Improvements to SSR testing

What is the current behavior?

NextJs Runtime SSR throws hydration errors, currently those errors are ignored. This PR adds a test to properly detect those errors per component, adds a bunch of additional components to test for SSR & a coverage report that helps show which components properly support SSR. The report also tracks environment information per test run, which helped figure out what version of core/output-targets caused SSR regressions.

Issue URL:

What is the new behavior?

The goal of this PR is to start moving us in the direction of clearly communicating what components properly support SSR and which ones do not. @OS-jacobbell & I have been working on making improvements to the NextJs Runtime SSR support and identified several regressions that led to a lot of mismatch errors during hydration. While working on fixes, we found the HTML report useful for tracking where the regressions began & tracking progress of the fixes. There will be a follow up PR with the fixes

Note: The ssr-compatibility.test.ts is currently excluded from the test run (via wdio.conf.ts) to prevent CI failures until the hydration mismatch fixes are merged.

  • New ssr-compatibility test added
  • Additional test components added
  • SSR Compatibility report

Does this introduce a breaking change?

  • Yes
  • No

Other information

image image

@OS-paulvisciano OS-paulvisciano requested a review from a team as a code owner February 1, 2026 05:42
@OS-paulvisciano OS-paulvisciano changed the title Runtime SSR Testing Improvements test : Runtime SSR Testing Improvements Feb 1, 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.

2 participants