File tree Expand file tree Collapse file tree
js_npm/graphql/ecommerce-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- const em = require ( "evomaster-client-js);
1+ const em = require ( "evomaster-client-js" ) ;
22const dbHandler = require ( "./db-handler" ) ;
33
44const { NestFactory } = require ( '@nestjs/core' ) ;
5- const { AppModule } = require ( './../src/app.module' ) ;
5+
66
77class AppController extends em . SutController {
88
@@ -47,11 +47,13 @@ class AppController extends em.SutController {
4747 process . env . DATABASE_NAME = "db" ;
4848 process . env . DATABASE_PORT = process . env . DB_PORT
4949
50+ const { AppModule } = require ( './../src/app.module' ) ;
51+
5052 const app = await NestFactory . create ( AppModule ) ;
5153 app . setGlobalPrefix ( 'api' )
5254
5355 app . listen ( 0 , "localhost" , ( ) => {
54- this . server = app . server ;
56+ this . server = app . getHttpServer ( ) ;
5557 this . port = this . server . address ( ) . port ;
5658 resolve ( "http://localhost:" + this . port ) ;
5759 } ) ;
Original file line number Diff line number Diff line change 2020 "test:debug" : " node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand" ,
2121 "test:e2e" : " jest --config ./test/jest-e2e.json" ,
2222 "instrument" : " rimraf instrumented && babel dist em -d instrumented/src --copy-files " ,
23- "em" : " node instrumented/em /em-main.js"
23+ "em" : " node instrumented/src /em-main.js"
2424 },
2525 "dependencies" : {
2626 "@nestjs/common" : " ^8.0.0" ,
7777 },
7878 "babel" : {
7979 "only" : [
80- " build "
80+ " dist "
8181 ],
8282 "plugins" : [
8383 " module:evomaster-client-js"
You can’t perform that action at this time.
0 commit comments