fix issues in core
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import type { DriverId } from '../../../racing/domain/entities/DriverId';
|
||||
import type { ParticipantRef } from '../../../racing/domain/types/ParticipantRef';
|
||||
|
||||
export function makeDriverRef(driverId: string): ParticipantRef {
|
||||
|
||||
23
core/testing/factories/racing/SeasonFactory.ts
Normal file
23
core/testing/factories/racing/SeasonFactory.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Season } from '@core/racing/domain/entities/season/Season';
|
||||
import type { SeasonStatus } from '@core/racing/domain/entities/season/Season';
|
||||
|
||||
export const createMinimalSeason = (overrides?: { status?: SeasonStatus }) =>
|
||||
Season.create({
|
||||
id: 'season-1',
|
||||
leagueId: 'league-1',
|
||||
gameId: 'iracing',
|
||||
name: 'Test Season',
|
||||
status: overrides?.status ?? 'planned',
|
||||
});
|
||||
|
||||
export const createBaseSeason = () =>
|
||||
Season.create({
|
||||
id: 'season-1',
|
||||
leagueId: 'league-1',
|
||||
gameId: 'iracing',
|
||||
name: 'Config Season',
|
||||
status: 'planned',
|
||||
startDate: new Date('2025-01-01T00:00:00Z'),
|
||||
endDate: undefined,
|
||||
maxDrivers: 24,
|
||||
});
|
||||
Reference in New Issue
Block a user