feat: refactor tests and improve mocking for file-service and GitHub polling

- Updated mocking strategy for node:fs and node:fs/promises in file-service tests.
- Removed redundant test files and improved test implementations for better clarity.
- Enhanced GitHub polling service tests with rate limiter integration.
This commit is contained in:
gsxdsm
2026-04-01 22:44:44 -07:00
parent 59a236adbd
commit dc442cf391
18 changed files with 28 additions and 1142 deletions

View File

@@ -118,6 +118,7 @@ describe("GitHubPollingService", () => {
store: mockStore,
token: "test-token",
pollingIntervalMs: 60_000,
rateLimiter: new GitHubRateLimiter(),
});
mockGetBadgeStatusesBatch.mockReset();