feat(server): setup api for selfhost deployment (#7569)

This commit is contained in:
forehalo
2024-07-23 10:39:33 +00:00
parent 14fbeb7879
commit dddbfe6473
21 changed files with 243 additions and 136 deletions

View File

@@ -7,7 +7,7 @@ import { createTestingModule } from './utils';
let config: Config;
let module: TestingModule;
test.beforeEach(async () => {
module = await createTestingModule();
module = await createTestingModule({}, false);
config = module.get(Config);
});
@@ -33,4 +33,6 @@ test('should be able to override config', async t => {
const config = module.get(Config);
t.is(config.server.host, 'testing');
await module.close();
});