mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +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[];
|
let systems: InterchangeSystem[];
|
||||||
|
|
||||||
if (process.argv.length > 2 && process.argv[2] == "integration-testing") {
|
systems = await Promise.all(supportedSystems.map(
|
||||||
console.log("Using integration testing setup")
|
async (systemArguments) => {
|
||||||
|
return await InterchangeSystem.build(systemArguments);
|
||||||
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);
|
|
||||||
},
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
const { url } = await startStandaloneServer(server, {
|
const { url } = await startStandaloneServer(server, {
|
||||||
listen: {
|
listen: {
|
||||||
|
|||||||
Reference in New Issue
Block a user