ProvenPin Install

Stacks

vitest recipes

19 tested vitest integration recipes with astro, @aws-sdk/client-dynamodb, @aws-sdk/lib-dynamodb, @aws-sdk/client-sqs. Exact pinned versions and a last-passed receipt, last run 2026-10-15.

passed2/2typescript

Astro 7 component rendering tests with the Container API (Vitest)

Render Astro components to HTML in Vitest with the Container API and getViteConfig, checking props, slots and conditional markup.

astro@7.3.8vitest@5.0.4
last passed 2026-10-15 14:10 UTC
passed6/6typescript

AWS SDK v3 DynamoDB document client and SQS events, tested with Vitest matchers

A single-table DynamoDB order service on @aws-sdk/lib-dynamodb with conditional puts, begins_with queries and optimistic locking, publishing SQS events, tested offline with aws-sdk-client-mock and aws-sdk-client-mock-vitest matchers.

@aws-sdk/client-dynamodb@3.1152.0@aws-sdk/lib-dynamodb@3.1152.0@aws-sdk/client-sqs@3.1152.0
last passed 2026-10-15 14:10 UTC
passed5/5typescript

Effect 4 Schema classes, typed errors and retries, tested with @effect/vitest

Effect 4 Schema.Class models with checks, brands, FiniteFromString and fromJsonString for decode and encode, TaggedError failures, and Effect.retry with exponential backoff verified on the TestClock using @effect/vitest.

effect@4.0.5@effect/vitest@4.0.5vitest@5.0.4
last passed 2026-10-15 14:12 UTC
passed3/3typescript

Hono + Drizzle ORM + SQLite REST API (Vitest)

CRUD REST API in Hono backed by Drizzle ORM on better-sqlite3, with Zod validation, tested with Vitest and app.request().

hono@4.13.13drizzle-orm@0.45.4better-sqlite3@13.0.3
last passed 2026-10-15 14:13 UTC
passed3/3typescript

Hono + Valibot request validation (Vitest)

Validate JSON bodies and query strings in Hono with Valibot schemas via @hono/valibot-validator, with custom error responses, tested with Vitest.

hono@4.13.13valibot@1.5.0@hono/valibot-validator@0.6.1
last passed 2026-10-15 14:13 UTC
passed3/3typescript

ioredis cache-aside with TTL, tested with ioredis-mock (Vitest)

Cache-aside helper on ioredis with JSON values, TTLs, stampede-safe single flight and invalidation, tested offline with ioredis-mock in Vitest.

ioredis@5.11.1vitest@5.0.4ioredis-mock@8.13.1
last passed 2026-10-15 14:14 UTC
passed5/5typescript

Jotai atoms with React 19, tested with Testing Library and isolated stores

Jotai 3 primitive, derived, write-only and async atoms driving a React 19 todo UI with Suspense, tested in Vitest on happy-dom with @testing-library/react, user-event and a fresh createStore per test, plus store-only tests without React.

jotai@3.0.1react@19.3.1react-dom@19.3.1
last passed 2026-10-15 14:14 UTC
passed3/3typescript

ky HTTP client with hooks and retries, tested with MSW + Vitest

A ky 2 API client (prefix option, state-object hooks) with auth hooks, retry on 5xx and typed JSON, tested offline with MSW's Node server in Vitest.

ky@2.2.0vitest@5.0.4msw@3.0.3
last passed 2026-10-15 14:14 UTC
passed4/4typescript

Preact components with Signals state, tested with Testing Library on jsdom

A Preact 11 cart using @preact/signals signal and computed state plus a hooks-based async form, tested in Vitest on jsdom with @testing-library/preact and user-event, including re-render on signal change without new props.

preact@11.0.1@preact/signals@2.11.3@testing-library/preact@3.2.4
last passed 2026-10-15 14:16 UTC
passed4/4typescript

Redux Toolkit + RTK Query with tag invalidation and optimistic updates, tested with MSW

An RTK Query API slice with auth headers from Redux state, tag-based cache invalidation and an optimistic update with rollback, tested offline in Vitest against MSW 3 request handlers without rendering React.

@reduxjs/toolkit@2.13.0msw@3.0.3vitest@5.0.4
last passed 2026-10-15 14:17 UTC
passed3/3typescript

SolidJS signals, memos and resources, tested with Solid Testing Library

SolidJS components using createSignal, createMemo, For, Show and createResource with Suspense, compiled by vite-plugin-solid and tested in Vitest on jsdom with @solidjs/testing-library and user-event.

solid-js@1.9.17@solidjs/testing-library@0.8.10@testing-library/user-event@14.6.8
last passed 2026-10-15 14:17 UTC
passed4/4typescript

supabase-js queries and auth tested with a mocked fetch (Vitest)

Use @supabase/supabase-js for table queries and auth in app code, and unit-test it offline by passing a fake fetch to createClient.

@supabase/supabase-js@2.117.3vitest@5.0.4
last passed 2026-10-15 14:17 UTC
passed3/3typescript

SvelteKit form actions with fail() and Zod, unit-tested (Vitest)

SvelteKit +page.server.ts form actions that validate with Zod, return fail(400) with field errors, and redirect on success, tested by calling the actions with a fake RequestEvent.

@sveltejs/kit@3.1.0svelte@5.57.2zod@4.6.7
last passed 2026-10-15 14:17 UTC
passed3/3typescript

TanStack Query + React Testing Library hooks and components (Vitest + jsdom)

Test React components and hooks that use TanStack Query v5 with Testing Library on jsdom: fresh QueryClient per test, retries off, mocked fetchers, mutations with invalidation.

@tanstack/react-query@5.104.3react@19.3.1react-dom@19.3.1
last passed 2026-10-15 14:16 UTC
passed3/3typescript

tRPC 11 client + server over fetch with superjson (Vitest)

End-to-end typed tRPC 11: fetch adapter server, createTRPCClient with httpBatchLink and superjson transformer for Dates and Maps, tested in-process with Vitest.

@trpc/server@11.19.0@trpc/client@11.19.0superjson@2.2.6
last passed 2026-10-15 14:17 UTC
passed3/3typescript

Vanilla DOM form testing with Testing Library + user-event on happy-dom (Vitest)

Test framework-free DOM code (a validated signup form) the way users use it, with @testing-library/dom queries and user-event typing on happy-dom.

vitest@5.0.4@testing-library/dom@10.4.2@testing-library/user-event@14.6.8
last passed 2026-10-15 14:11 UTC
passed3/3typescript

Verify JWTs against a JWKS with jose (RS256, key rotation) in Vitest

Verify third-party RS256 access tokens (Auth0, Cognito, Clerk style) with jose's JWKS key sets, checking issuer, audience, expiry and key rotation, tested offline with a local JWKS.

jose@6.2.12vitest@5.0.4
last passed 2026-10-15 14:14 UTC
passed4/4typescript

Vue 3 + Pinia store and component tests with @pinia/testing (Vitest)

Test a Pinia setup store directly and a Vue 3 component that uses it with @vue/test-utils and createTestingPinia (stubbed actions, initial state), on jsdom.

vue@3.5.44pinia@4.1.0vitest@5.0.4
last passed 2026-10-15 14:18 UTC
passed4/4typescript

Zustand 5 store with persist middleware, tested with Vitest

A typed Zustand 5 vanilla store with actions, derived selectors and persist middleware on a custom storage, tested with Vitest including state reset between tests.

zustand@5.0.15vitest@5.0.4
last passed 2026-10-15 14:18 UTC

Used together with vitest

astro@aws-sdk/client-dynamodb@aws-sdk/lib-dynamodb@aws-sdk/client-sqsaws-sdk-client-mockeffect@effect/vitestHonoDrizzle ORMbetter-sqlite3Zod@hono/zod-validatorvalibot@hono/valibot-validatorioredisioredis-mockjotaireact@testing-library/reacthappy-domkyMSWpreact@preact/signals@testing-library/preact@testing-library/user-eventjsdom@reduxjs/toolkitsolid-js@solidjs/testing-libraryvite-plugin-solid@supabase/supabase-js@sveltejs/kitsvelte@tanstack/react-query@trpc/server@trpc/clientsuperjson@testing-library/domjosevuepinia@pinia/testing@vue/test-utilszustand