mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
Remove the app integration testing support
This commit is contained in:
28
src/index.ts
28
src/index.ts
@@ -30,29 +30,11 @@ async function main() {
|
||||
|
||||
let systems: InterchangeSystem[];
|
||||
|
||||
if (process.argv.length > 2 && process.argv[2] == "integration-testing") {
|
||||
console.log("Using integration testing setup")
|
||||
|
||||
systems = await Promise.all(supportedIntegrationTestSystems.map(
|
||||
async (systemArguments) => {
|
||||
const system = InterchangeSystem.buildForTesting(systemArguments);
|
||||
|
||||
// TODO: Have loading of different data for different systems in the future
|
||||
await loadShuttleTestData(system.shuttleRepository);
|
||||
if (system.parkingRepository) {
|
||||
await loadParkingTestData(system.parkingRepository);
|
||||
}
|
||||
|
||||
return system;
|
||||
}
|
||||
));
|
||||
} else {
|
||||
systems = await Promise.all(supportedSystems.map(
|
||||
async (systemArguments) => {
|
||||
return await InterchangeSystem.build(systemArguments);
|
||||
},
|
||||
));
|
||||
}
|
||||
systems = await Promise.all(supportedSystems.map(
|
||||
async (systemArguments) => {
|
||||
return await InterchangeSystem.build(systemArguments);
|
||||
},
|
||||
));
|
||||
|
||||
const { url } = await startStandaloneServer(server, {
|
||||
listen: {
|
||||
|
||||
Reference in New Issue
Block a user