Skip to content

Commit 90232b1

Browse files
committed
refactoring for ecommerce
1 parent 396e36b commit 90232b1

4 files changed

Lines changed: 39 additions & 17 deletions

File tree

js_npm/graphql/ecommerce-server/em/app-driver.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ const superagent = require("superagent");
66

77
class AppController extends em.SutController {
88

9-
setupForGeneratedTest() {
10-
}
11-
129
getInfoForAuthentication() {
1310
let jwtLogin = new em.dto.JsonTokenPostLoginDto();
1411
jwtLogin.endpoint = "/graphql";

js_npm/graphql/ecommerce-server/package-lock.json

Lines changed: 31 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js_npm/graphql/ecommerce-server/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"private": true,
77
"license": "UNLICENSED",
88
"scripts": {
9-
"prebuild": "rimraf dist",
10-
"build": "nest build && npm run instrument",
9+
"prebuild": "rimraf build",
10+
"build": "nest build",
1111
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1212
"start": "nest start",
1313
"dev": "nest start --watch",
@@ -19,8 +19,8 @@
1919
"test:cov": "jest --coverage",
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",
22-
"instrument": "rimraf instrumented && babel dist em -d instrumented/src --copy-files ",
23-
"em": "node instrumented/src/em-main.js"
22+
"em:run": "node instrumented/em/em-main.js",
23+
"em:build": "npm run build && rimraf instrumented && babel build -d instrumented --copy-files && babel em -d instrumented/em --copy-files && babel em -d build/em --copy-files "
2424
},
2525
"dependencies": {
2626
"@nestjs/common": "^8.0.0",
@@ -78,7 +78,7 @@
7878
},
7979
"babel": {
8080
"only": [
81-
"dist"
81+
"build"
8282
],
8383
"plugins": [
8484
"module:evomaster-client-js"
@@ -90,11 +90,8 @@
9090
"json",
9191
"ts"
9292
],
93-
"rootDir": "src",
94-
"testRegex": ".*\\.spec\\.ts$",
95-
"transform": {
96-
"^.+\\.(t|j)s$": "ts-jest"
97-
},
93+
"rootDir": "build/em",
94+
"testRegex": ".*Test.js$",
9895
"collectCoverageFrom": [
9996
"**/*.(t|j)s"
10097
],

js_npm/graphql/ecommerce-server/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"allowSyntheticDefaultImports": true,
99
"target": "es2017",
1010
"sourceMap": true,
11-
"outDir": "./dist",
11+
"outDir": "./build/src",
1212
"incremental": true,
1313
"skipLibCheck": true,
1414
"baseUrl": "./src",

0 commit comments

Comments
 (0)