Skip to content

Commit 9b48d41

Browse files
committed
trying to fix running of generated tests
1 parent 9b89974 commit 9b48d41

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

js_npm/rest/realworld-app/ormconfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ module.exports = {
55
"username": "test",
66
"password": "test",
77
"database": "test",
8-
"entities": [ process.env.NODE_ENV == 'production' ? __dirname + '/src/build/**/**.entity.js' : (process.env.NODE_ENV == 'em_production'? __dirname + '/instrumented/src/**/**.entity.js':__dirname + '/src/src/**/**.entity.ts') ],
8+
"entities": [ process.env.NODE_ENV == 'production' ? __dirname + '/build/src/**/**.entity.js' : (process.env.NODE_ENV == 'em_production'? __dirname + '/instrumented/src/**/**.entity.js':__dirname + '/build/src/**/**.entity.ts') ],
99
"migrationsTableName": "migrations",
10-
"migrations": [process.env.NODE_ENV == 'em_production'? "instrumented/src/database/migration/*.js": "src/database/migration/*.js"],
10+
"migrations": [process.env.NODE_ENV == 'em_production'? "instrumented/src/database/migration/*.js": "build/src/database/migration/*.js"],
1111
"cli": {
12-
"migrationsDir": process.env.NODE_ENV == 'em_production'? "instrumented/src/database/migration": "src/database/migration"
12+
"migrationsDir": process.env.NODE_ENV == 'em_production'? "instrumented/src/database/migration": "build/src/database/migration"
1313
},
1414
"synchronize": true
1515
}

js_npm/rest/realworld-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "rimraf build && tsc",
88
"em:run": "cross-env NODE_ENV=em_production node instrumented/em/em-main.js",
9-
"em:build": "npm run build && rimraf instrumented & babel build -d instrumented/src --copy-files && babel em -d instrumented/em --copy-files && babel swagger.json -d instrumented --copy-files && babel em -d build/em --copy-files",
9+
"em:build": "npm run build && rimraf instrumented & babel build -d instrumented --copy-files && babel em -d instrumented/em --copy-files && babel swagger.json -d instrumented --copy-files && babel em -d build/em --copy-files",
1010
"start": "node src/index.js",
1111
"start:watch": "nodemon",
1212
"prestart:prod": "tsc",
@@ -72,7 +72,7 @@
7272
},
7373
"jest": {
7474
"testEnvironment": "node",
75-
"testRegex": "[em|tests]/.*Test\\.(js|jsx|ts|tsx)$",
75+
"testRegex": "[build/em|tests]/.*Test\\.(js|jsx|ts|tsx)$",
7676
"collectCoverageFrom": [
7777
"src/**/*.(js|jsx|ts|tsx)"
7878
],

0 commit comments

Comments
 (0)