website refactor

This commit is contained in:
2026-01-16 19:38:55 +01:00
parent 095885544b
commit 26fc726556
73 changed files with 232 additions and 213 deletions

View File

@@ -1,8 +1,7 @@
import { describe, it, expect, beforeEach, vi, Mock } from 'vitest';
import { describe, it, expect, beforeEach, vi, type Mock } from 'vitest';
import {
ManageSeasonLifecycleUseCase,
type ManageSeasonLifecycleInput,
type ManageSeasonLifecycleResult,
type ManageSeasonLifecycleErrorCode,
} from './ManageSeasonLifecycleUseCase';
import type { SeasonRepository } from '../../domain/repositories/SeasonRepository';
@@ -28,8 +27,8 @@ describe('ManageSeasonLifecycleUseCase', () => {
findById: vi.fn(),
update: vi.fn(),
};
useCase = new ManageSeasonLifecycleUseCase(leagueRepository as any,
seasonRepository as any);
useCase = new ManageSeasonLifecycleUseCase(leagueRepository as unknown as LeagueRepository,
seasonRepository as unknown as SeasonRepository);
});
it('applies activate → complete → archive transitions and persists state', async () => {