Testing & Contribution
How we ensure software quality through automated tests and the contribution process (Pull Request).
Backend Testing
Using Jest for Unit and Integration Tests. All business logic (Use Cases) is covered to prevent regressions.
Frontend Testing
Using Vitest with React Testing Library to verify UI components and state management (Zustand).
Guardrails
Sensitive changes must pass AI tests (ai.service.spec.ts) to ensure the routing engine remains intact.
Backend Testing (NestJS + Jest)
# Run all tests
npm run test
# Run tests in watch mode (for dev)
npm run test:watch
# Run a specific test file
npx jest server/src/tests/ai/ai.service.spec.ts
Frontend Testing (Vite + Vitest)
# Run frontend tests
cd client && npm run test
Security Audits
Logic Hardening
All security patches are based on real-world attack scenarios (like IDOR visibility or SQL bypass).
Manual Validation
Complex logic vulnerabilities are manually validated by the dev team before core integration.
Contribution Flow
Create Branch
feature/your-feature-name
Commit & Push
Tuân thủ Conventional Commits (feat:, fix:, chore:)
Open Pull Request
Mô tả rõ ràng các thay đổi và đính kèm video/ảnh minh họa
Review & Merge
Ít nhất 1 approval từ maintainers
Coding Standards
Ready to explore data?
Join the community on GitHub to contribute to the smartest local database IDE.
Launch App