Skip to content

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 test

This runs the Laravel/Pest test suite directly.

Additional useful commands

bash
npm run lint
npm run types

Run frontend linting and type checks.

  1. Run php artisan test.
  2. Run npm run lint and npm run types.
  3. Verify billing flows (checkout, portal, webhook handling) in Stripe test mode.
  4. Verify social auth callback flow for enabled providers.
  5. Verify workspace invite/accept/member-role flows.
  6. 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.