stratal-testing
Installation
SKILL.md
@stratal/testing
Test utilities for Stratal applications: module compilation with provider overrides, fluent HTTP client, storage fakes, fetch mocking (MSW-based), and auth testing helpers. Full documentation at stratal.dev/testing.
Setup
Docs: Overview
Vitest Plugin
For e2e tests running in the Cloudflare Workers (workerd) environment, use the stratalTest() Vite plugin. It wraps cloudflareTest and applies Stratal-specific defaults (tslib alias for tsyringe, ZenStack language mocks, SSR externals).
// vitest.config.ts
import { stratalTest } from '@stratal/testing/vitest-plugin'
import { defineConfig } from 'vitest/config'