enable shutdown hooks in tests

just because
This commit is contained in:
dakkar 2025-09-19 13:04:13 +01:00
parent 0e985b77d6
commit e111d8aa55

View file

@ -27,6 +27,7 @@ async function launch() {
app = await NestFactory.createApplicationContext(MainModule, {
logger: new NestLogger(),
});
app.enableShutdownHooks();
serverService = app.get(ServerService);
await serverService.launch();
@ -86,6 +87,7 @@ async function startControllerEndpoints(port = config.port + 1000) {
app = await NestFactory.createApplicationContext(MainModule, {
logger: new NestLogger(),
});
app.enableShutdownHooks();
serverService = app.get(ServerService);
await serverService.launch();