Guides
Testing
Testing strategies for Insolitum Universe modules. Unit tests, component tests, E2E tests, and CI/CD pipeline.
Testing
A well-tested module passes marketplace review faster and maintains reliability for users.
Health Endpoint Test
The module-starter includes a basic health endpoint test:
Unit Tests with Vitest
Testing Hooks
E2E Tests with Playwright
CI/CD Pipeline
The module-starter includes a GitHub Actions workflow:
Test Checklist Before Submission
- Health endpoint returns
{ status: "ok" }with 200 - Module builds without errors (
pnpm build) - TypeScript compiles without errors (
pnpm typecheck) - Linter passes (
pnpm lint) - Module loads correctly in universe-shell iframe
- Auth handshake works (user info displayed)
- Data queries are scoped to organization_id
- Module works with dark theme
- No console errors in production build