commit 2 refactor

This commit is contained in:
Boki 2026-10-20 14:35:45 -04:00
parent 588f666943
commit 32e43c9243
310 changed files with 33318 additions and 31189 deletions

View file

@ -1,7 +1,6 @@
import { beforeEach, describe, expect, it, mock, type Mock } from 'bun:test';
import type { Logger } from '@stock-bot/logger';
import { processBatchJob, processItems } from '../src/batch-processor';
import type { BatchJobData, ProcessOptions, Queue, QueueManager } from '../src/types';
import type { BatchJobData, ProcessOptions, QueueManager } from '../src/types';
describe('Batch Processor', () => {
type MockLogger = {
@ -122,7 +121,7 @@ describe('Batch Processor', () => {
});
// processBatchJob should still complete even if addBulk fails
const result = await processBatchJob(
const _result = await processBatchJob(
batchData,
'test-queue',
mockQueueManager as unknown as QueueManager