Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tokyotrav's avatar

Component Testing for SSR issues

We're using Inertia/Vue for a server-side rendered (SSR) site. We've run into production bugs where a platform-specific API (e.g. window or document) is being used without checking if they exist first, which causes SSR errors.

I was wondering if anyone has any strategies for writing component tests in Vitest to check for these kind of issues?

0 likes
0 replies

Please or to participate in this conversation.