integration tests
Some checks failed
Contract Testing / contract-tests (pull_request) Failing after 4m46s
Contract Testing / contract-snapshot (pull_request) Has been skipped

This commit is contained in:
2026-01-22 19:16:43 +01:00
parent 597bb48248
commit 2fba80da57
25 changed files with 5143 additions and 7496 deletions

View File

@@ -92,4 +92,9 @@ export class InMemoryLeagueMembershipRepository implements LeagueMembershipRepos
}
return Promise.resolve();
}
clear(): void {
this.memberships.clear();
this.joinRequests.clear();
}
}

View File

@@ -14,6 +14,10 @@ export class InMemoryLeagueRepository implements LeagueRepository {
this.logger.info('InMemoryLeagueRepository initialized');
}
clear(): void {
this.leagues.clear();
}
async findById(id: string): Promise<League | null> {
this.logger.debug(`Attempting to find league with ID: ${id}.`);
try {

View File

@@ -105,4 +105,8 @@ export class InMemoryRaceRepository implements RaceRepository {
this.logger.debug(`[InMemoryRaceRepository] Checking existence of race with ID: ${id}.`);
return Promise.resolve(this.races.has(id));
}
clear(): void {
this.races.clear();
}
}

View File

@@ -83,4 +83,8 @@ export class InMemorySeasonRepository implements SeasonRepository {
);
return Promise.resolve(activeSeasons);
}
clear(): void {
this.seasons.clear();
}
}

View File

@@ -95,4 +95,9 @@ export class InMemorySponsorRepository implements SponsorRepository {
this.logger.debug(`[InMemorySponsorRepository] Checking existence of sponsor with ID: ${id}`);
return Promise.resolve(this.sponsors.has(id));
}
clear(): void {
this.sponsors.clear();
this.emailIndex.clear();
}
}

View File

@@ -109,4 +109,8 @@ export class InMemorySponsorshipRequestRepository implements SponsorshipRequestR
this.logger.debug(`[InMemorySponsorshipRequestRepository] Checking existence of request with ID: ${id}.`);
return Promise.resolve(this.requests.has(id));
}
clear(): void {
this.requests.clear();
}
}