intellitester-astro
v0.2.61
Published
Astro integration for IntelliTester - AI-powered automated testing
Downloads
4,355
Maintainers
Readme
@autotester/astro
Astro integration for AutoTester - SSR and hydration testing for Astro applications.
Installation
pnpm add @autotester/astro -DUsage
Add the integration to your astro.config.mjs:
import { defineConfig } from 'astro/config';
import autotester from '@autotester/astro';
export default defineConfig({
integrations: [
autotester({
testsDir: './tests',
runOnBuild: true,
testSSR: true,
testHydration: true,
testIslands: true,
})
]
});Options
testsDir- Directory containing test files (default:./tests)runOnBuild- Run tests during build (default:false)testSSR- Validate SSR output (default:false)testHydration- Test hydration directives (default:false)testIslands- Test island isolation (default:false)
Features
SSR Testing
Validates that components render correctly on the server side.
Hydration Testing
Tests Astro's hydration directives:
client:loadclient:visibleclient:idleclient:only
Island Isolation
Verifies that Astro islands are properly isolated and hydrate independently.
Test Runner
The integration adds a /__autotester route to your dev server to view test results.
License
MIT
