Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 454 Bytes

File metadata and controls

27 lines (19 loc) · 454 Bytes

Testing Guide

OpenCodeHub uses Vitest for unit testing and Playwright for end-to-end testing.

Running Unit Tests

bun test
# or
npm test

This runs all tests located in src/**/*.test.ts.

Running E2E Tests

npx playwright test

Writing Tests

We encourage TDD. When adding a new feature:

  1. Create a feature.test.ts file.
  2. Write a failing test case.
  3. Implement the feature.
  4. Verify the test passes.