Feb 28, 2024
0
Level 16
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?
Please or to participate in this conversation.