integration tests
This commit is contained in:
@@ -93,6 +93,12 @@ export class InMemoryDriverRepository implements DriverRepository {
|
||||
return Promise.resolve(this.iracingIdIndex.has(iracingId));
|
||||
}
|
||||
|
||||
async clear(): Promise<void> {
|
||||
this.logger.info('[InMemoryDriverRepository] Clearing all drivers');
|
||||
this.drivers.clear();
|
||||
this.iracingIdIndex.clear();
|
||||
}
|
||||
|
||||
// Serialization methods for persistence
|
||||
serialize(driver: Driver): Record<string, unknown> {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user