Answers about testing
Questions and answers from the Croct community about testing.
0
Keeping Playwright E2E runs from sending real Croct events and eating MAU
Our nightly Playwright suite runs about 400 tests against a staging deployment of our Next.js app. I noticed the runs show up as sessions in the Croct…
0
Jest tests hang or render nothing for components that call useContent
I write tests first, so this is blocking me. I have a hero component that calls useContent('home-hero'). In Jest with jsdom, render(<Hero />) produces an…
0
Cleanest way to mock Croct hooks in Vitest so component tests stay offline
hi, trying to keep our component tests fully offline. Minimal repro: In jsdom the hook never resolves, so render(<Hero />) inside a Suspense boundary just…