Skip to content

Commit 7bef7e4

Browse files
committed
Fix
1 parent 54e23a1 commit 7bef7e4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

e2e/nestjs/services/nestjs.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ const supergraph = opts.get('supergraph', true);
2020
})
2121
class AppModule {}
2222

23-
const app = await NestFactory.create(AppModule);
2423
const port = opts.getServicePort('nestjs', true);
25-
await app.listen(port);
24+
25+
async function main() {
26+
const app = await NestFactory.create(AppModule);
27+
await app.listen(port);
28+
}
29+
30+
main().catch((err) => {
31+
console.error(err);
32+
process.exit(1);
33+
});

0 commit comments

Comments
 (0)