chore: fix Jest polyfills #468
Annotations
2 errors
Run Vitest tests:
src/__tests__/handlers.test.tsx#L83
Error: expect(element).not.toHaveTextContent()
Expected element not to have text content:
-
Received:
-
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="bg-white"
>
<div
class="mx-auto max-w-2xl px-4 py-4 sm:px-6 lg:max-w-7xl lg:px-8"
>
<h2
class="text-2xl font-bold tracking-tight text-gray-900"
>
Customers also purchased
</h2>
<div
class="mt-6 grid grid-cols-1 gap-x-6 gap-y-10 sm:grid-cols-2 lg:grid-cols-4 xl:gap-x-8"
>
<div
class="group relative"
>
<div
class="aspect-h-1 aspect-w-1 w-full overflow-hidden rounded-md bg-gray-200 lg:aspect-none group-hover:opacity-75 lg:h-80"
>
<img
class="h-full w-full object-cover object-center lg:h-full lg:w-full"
src="https://storage.googleapis.com/hack-the-supergraph/apollo-beanie.jpg"
/>
</div>
<div
class="mt-4 flex justify-between"
>
<div>
<h3
class="text-sm text-gray-700"
>
<a
href="#"
>
<span
aria-hidden="true"
class="absolute inset-0"
/>
beanie
</a>
</h3>
</div>
<p
class="text-sm font-medium text-gray-900"
data-testid="rating"
>
-
</p>
</div>
</div>
<div
class="group relative"
>
<div
class="aspect-h-1 aspect-w-1 w-full overflow-hidden rounded-md bg-gray-200 lg:aspect-none group-hover:opacity-75 lg:h-80"
>
<img
class="h-full w-full object-cover object-center lg:h-full lg:w-full"
src="https://storage.googleapis.com/hack-the-supergraph/apollo-bottle.jpg"
/>
</div>
<div
class="mt-4 flex justify-between"
>
<div>
<h3
class="text-sm text-gray-700"
>
<a
href="#"
>
<span
aria-hidden="true"
class="absolute inset-0"
/>
bottle
</a>
</h3>
</div>
<p
class="text-sm font-medium text-gray-900"
data-testid="rating"
>
-
</p>
</div>
</div>
<div
class="group relative"
>
<div
class="aspect-h-1 aspect-w-1 w-full overflow-hidden rounded-md bg-gray-200 lg:aspect-none group-hover:opacity-75 lg:h-80"
>
<img
class="h-full w-full object-cover object-center lg:h-full lg:w-full"
src="https://storage.googleapis.com/hack-the-supergraph/apollo-cap.jpg"
/>
</div>
<div
class="mt-4 flex justify-between"
>
<div>
<h3
class="text-sm text-gray-700"
>
<a
href="#"
>
<span
aria-hidden="true"
class="absolute inset-0"
/>
cap
</a>
</h3>
</div>
<p
class="text-sm font-
|
Run Vitest tests
Process completed with exit code 1.
|
Loading