fix: Make all ways to start the server more consistent

This commit is contained in:
Joachim Van Herwegen
2023-07-18 15:54:45 +02:00
parent b7f4f1bd51
commit e921d62630
4 changed files with 121 additions and 126 deletions

View File

@@ -15,15 +15,15 @@ describe('A Solid server', (): void => {
beforeAll(async(): Promise<void> => {
// Using AppRunner here so it is also tested in an integration test
app = await new AppRunner().create(
{
app = await new AppRunner().create({
loaderProperties: {
mainModulePath: resolveModulePath(''),
logLevel: 'error',
typeChecking: false,
},
resolveModulePath('config/default.json'),
getDefaultVariables(port, baseUrl),
);
config: resolveModulePath('config/default.json'),
variableBindings: getDefaultVariables(port, baseUrl),
});
await app.start();
});