feat: port pre-start general deletion lifecycle

This commit is contained in:
2026-07-31 05:44:36 +00:00
parent f1929be3fe
commit 71ec02d091
24 changed files with 1257 additions and 160 deletions
@@ -506,7 +506,7 @@ describe('auction integration flow', () => {
`
);
const result = await transport.requestCommand({ type: 'auctionFinalize', auctionId: auction.id }, 30_000);
expect(result?.ok).toBe(true);
expect(result).toMatchObject({ type: 'auctionFinalize', ok: true });
const finished = await prisma.auction.findUnique({
where: { id: auction.id },
@@ -652,7 +652,7 @@ describe('auction integration flow', () => {
`
);
const result = await transport.requestCommand({ type: 'auctionFinalize', auctionId: auction.id }, 30_000);
expect(result?.ok).toBe(false);
expect(result).toMatchObject({ type: 'auctionFinalize', ok: false });
const reopened = await prisma.auction.findUnique({
where: { id: auction.id },
@@ -794,7 +794,7 @@ describe('auction integration flow', () => {
`
);
const result = await transport.requestCommand({ type: 'auctionFinalize', auctionId: auction.id }, 30_000);
expect(result?.ok).toBe(true);
expect(result).toMatchObject({ type: 'auctionFinalize', ok: true });
const winner = await prisma.general.findUnique({
where: { id: bidderB.generalId },