feat: add pricing job activity view
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 17:39:08 -04:00
parent af563b691d
commit 22d13af604
7 changed files with 109 additions and 2 deletions
@@ -62,4 +62,16 @@ test('enqueues a seller-scoped pricing refresh and reads its status', async () =
assert.equal(job.status, 'PENDING');
assert.equal(job.providerId, 'mapped-provider');
assert.equal((await service.getJob({ sellerId: 'seller-1', jobId: job.id })).status, 'COMPLETED');
});
test('lists and retries seller-scoped failed pricing jobs', async () => {
const service = createPricingService({
pricingRepository: {},
pricingRefreshJobRepository: {
async listForSeller() { return [{ id: 'job-1', status: 'FAILED' }]; },
async retryForSeller() { return { id: 'job-1', status: 'PENDING' }; },
},
});
assert.equal((await service.listJobs({ sellerId: 'seller-1' })).length, 1);
assert.equal((await service.retryJob({ sellerId: 'seller-1', jobId: 'job-1' })).status, 'PENDING');
});