Astro integration for IntelliTester - AI-powered automated testing
Astro integration for AutoTester - SSR and hydration testing for Astro applications.
``bash`
pnpm add @autotester/astro -D
Add the integration to your astro.config.mjs:
`javascript
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,
})
]
});
`
- 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)
Validates that components render correctly on the server side.
Tests Astro's hydration directives:
- client:loadclient:visible
- client:idle
- client:only
-
Verifies that Astro islands are properly isolated and hydrate independently.
The integration adds a /__autotester` route to your dev server to view test results.
MIT