feat: migrate testing framework to Bun and update test configurations

- Updated GitHub Actions workflow to use Bun's test runner and coverage reporting.
- Added comprehensive testing documentation for the Gitea Mirror project.
- Refactored test scripts in package.json to align with Bun's testing commands.
- Created new test files for database, Gitea, GitHub, health, and mirroring APIs.
- Implemented mock functions for API tests to handle various scenarios and responses.
- Established a test setup file for consistent test environment configuration.
This commit is contained in:
Arunavo Ray
2025-05-22 18:08:51 +05:30
parent 6ab7f0a5a0
commit 894be88a28
13 changed files with 1282 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ jobs:
bun install
- name: Run tests
run: bunx --bun vitest run
run: bun test --coverage
- name: Build Astro project
run: bunx --bun astro build