Appearance
Testing
This page summarizes the recommended testing workflow for SaasForgeKit.
Test stack
- Pest for PHP tests
- Laravel test runner for feature/unit coverage
- Pint for PHP formatting checks
- ESLint and TypeScript checks for frontend code
Core commands
From project root:
bash
php artisan testThis runs the Laravel/Pest test suite directly.
Additional useful commands
bash
npm run lint
npm run typesRun frontend linting and type checks.
Recommended pre-release checklist
- Run
php artisan test. - Run
npm run lintandnpm run types. - Verify billing flows (checkout, portal, webhook handling) in Stripe test mode.
- Verify social auth callback flow for enabled providers.
- Verify workspace invite/accept/member-role flows.
- Verify queue worker is running in staging/production-like environment.
Notes for CI
- Keep PHP and Node versions aligned with project requirements.
- Include both backend and frontend checks in pipeline.
- Prefer failing fast on lint/type errors before full test suite.