VibeFast
Testing & Quality

Testing & Quality Overview

An introduction to the testing strategy and tools used in VibeFast to ensure a high-quality, reliable codebase.

VibeFast is built with a strong emphasis on quality and reliability. The project includes a comprehensive testing setup and pre-configured CI/CD workflows to ensure that every part of the application is stable and maintainable.

Testing Philosophy

Our approach to testing is pragmatic and focused on delivering value:

  • User-Centric Testing: We prioritize testing our components from the user's perspective. Instead of testing implementation details, we test how a user interacts with the UI.
  • Co-location of Tests: Test files are located directly alongside the source code they are testing (e.g., src/features/authentication/__tests__/login-form.test.tsx). This makes them easy to find and maintain.
  • Automation: We leverage automation wherever possible, from running tests automatically in CI to deploying builds.

Tools We Use

Jest

The primary framework for running all frontend unit and integration tests for our React Native application.

React Native Testing Library

Used for writing user-centric tests that interact with components in the same way a user would.

Vitest

A modern, fast testing framework used for all backend (Convex) unit tests.

GitHub Actions

Powers our CI/CD pipeline, automatically running linters, tests, and builds on every pull request.

What's Next?

  • Unit Testing Guide: Learn how to write effective unit tests for your components and functions.
  • CI/CD Workflows: Understand the automated workflows that keep your project healthy.