fix(auction): prevent skipped players and incomplete completion

This commit is contained in:
dahyeon committed 2026-11-05 23:14:14 +09:00
1 parent de84ad5309
commit 5bc748dc4d
10 files changed
+677 -32

No files matched your search

@@ -5,6 +5,15 @@ import {
} from './auction-rejection';
describe('resolveAuctionRejectionReason', () => {
it('reports roster validation failures without recommending a retry', () => {
const reason = resolveAuctionRejectionReason(
'AUCTION_ROSTER_INVALID',
'Auction roster validation failed.',
);
expect(reason).toBe('AUCTION_TRANSITION_REJECTED_BECAUSE_ROSTER_INVALID');
expect(isAuctionResyncRecommended(reason)).toBe(false);
});
it('maps the internal CONFLICT code to the descriptive transition reason', () => {
expect(resolveAuctionRejectionReason('CONFLICT')).toBe(
AUCTION_REJECTION_REASON.AUCTION_TRANSITION_REJECTED_BECAUSE_LIVE_STATE_CHANGED_BEFORE_APPLY,