Testing
Learn how to test your ShipKit application effectively
Testing Your ShipKit Application
ShipKit comes with a comprehensive testing setup that includes both unit and end-to-end testing capabilities.
Testing Stack
Vitest
Fast unit testing with native TypeScript support and Jest compatibility
Playwright
Reliable end-to-end testing for web applications
Unit Testing with Vitest
End-to-End Testing with Playwright
Test Coverage
ShipKit is configured to generate test coverage reports using Vitest's built-in coverage reporting:
Continuous Integration
We recommend setting up GitHub Actions to run your tests automatically:
Best Practices
- Write tests as you develop new features
- Aim for high test coverage on critical paths
- Use meaningful test descriptions
- Keep tests focused and isolated
- Mock external dependencies appropriately
- Run the full test suite before deploying