Test Suite
We use Vitest for our unit and integration tests.Running Tests
To run the full suite:Writing a Tool Test
When testing an SEO tool, focus on verifying the math and the filtering logic.Mocking Google Data
We prefer using mock data for standard unit tests to avoid hitting API rate limits during CI/CD. Checktests/mocks.ts for existing search performance mocks.
CI/CD Workflow
Every pull request triggers our GitHub Actions CI, which:- Installs dependencies.
- Builds the project.
- Runs the test suite.
- Generates a coverage report.