style: Update default branch name to 'master' in CONTRIBUTING.md and RELEASING.md

This commit is contained in:
Peifan Li
2025-12-05 20:50:06 -05:00
parent f2e2698174
commit 4ceef3527e
4 changed files with 28 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ npm run dev
1. Ensure your code builds and runs locally.
2. Update the `README.md` if you are adding new features or changing configuration.
3. Push your branch to your fork on GitHub.
4. Open a Pull Request against the `main` branch of the original repository.
4. Open a Pull Request against the `master` branch of the original repository.
5. Provide a clear description of the problem and solution.
6. Link to any related issues.

View File

@@ -19,7 +19,7 @@ We use the `release.sh` script to automate the release process. This script hand
### Prerequisites
- Ensure you are on the `main` branch.
- Ensure you are on the `master` branch.
- Ensure your working directory is clean (no uncommitted changes).
- Ensure you are logged in to Docker Hub (`docker login`).

View File

@@ -14,6 +14,19 @@ import downloadManager from '../../services/downloadManager';
import * as downloadService from '../../services/downloadService';
import * as storageService from '../../services/storageService';
vi.mock('../../db', () => ({
db: {
insert: vi.fn(),
update: vi.fn(),
delete: vi.fn(),
select: vi.fn(),
transaction: vi.fn(),
},
sqlite: {
prepare: vi.fn(),
},
}));
vi.mock('../../services/downloadService');
vi.mock('../../services/storageService');
vi.mock('../../services/downloadManager');

View File

@@ -1,6 +1,19 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';
import * as storageService from '../../services/storageService';
vi.mock('../../db', () => ({
db: {
insert: vi.fn(),
update: vi.fn(),
delete: vi.fn(),
select: vi.fn(),
transaction: vi.fn(),
},
sqlite: {
prepare: vi.fn(),
},
}));
// Must mock before importing the module that uses it
vi.mock('../../services/storageService');
vi.mock('fs-extra', () => ({