Astro Automated Test Generator

•
10
•

Generates comprehensive Vitest unit and integration tests for Astro adapters, services, and framework islands.

The dev-create-test skill automates the creation of robust test suites for Astro applications by analyzing source files and applying context-aware testing patterns. It intelligently distinguishes between pure logic adapters, fetch-based services, and interactive UI islands, generating the appropriate boilerplate using Vitest and Testing Library. By standardizing test placement in the __tests__ directory and providing built-in execution capabilities, it streamlines the development workflow and ensures high code quality across the entire Astro ecosystem.

Key Features

0110 GitHub stars
02Automated mocking of global fetch for service-layer testing
03Integrated test execution with Vitest verbose reporting
04Standardized test file creation using .spec.ts naming conventions
05Support for React-based Astro islands and framework-specific test utilities
06Context-aware test generation for Adapters, Services, and Islands

Use Cases

01Generating unit tests for data adapters to verify API-to-app contract transformations
02Scaffolding component tests for Astro islands to ensure UI reliability
03Creating service tests with mocked network responses for backend integrations