fix website build

This commit is contained in:
2025-12-25 12:54:08 +01:00
parent ac083363bc
commit 722a185dd9
26 changed files with 1712 additions and 1419 deletions

View File

@@ -102,16 +102,18 @@ describe('Website Contract Consumption', () => {
});
it('should handle optional fields correctly', () => {
// Test DTOs with optional fields
// UploadMediaInputDTO has a required `file` field in generated types
const uploadInput: UploadMediaInputDTO = {
file: {},
type: 'image',
category: 'avatar'
category: 'avatar',
};
expect(uploadInput.type).toBe('image');
// Test with minimal required fields
// Minimal required fields
const minimalUpload: UploadMediaInputDTO = {
type: 'image'
file: {},
type: 'image',
};
expect(minimalUpload.type).toBe('image');
});
@@ -131,12 +133,8 @@ describe('Website Contract Consumption', () => {
const race: RaceDTO = {
id: 'race-123',
name: 'Test Race',
leagueId: 'league-456',
trackName: 'Test Track',
startTime: new Date().toISOString(),
status: 'scheduled',
maxDrivers: 20,
registeredDrivers: 5
date: new Date().toISOString(),
leagueName: 'Test League',
};
expect(race.id).toBe('race-123');