Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 342e676

Browse files
committed
Changes script to run migrations before integration tests
1 parent 3054b30 commit 342e676

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "npm run serve",
1111
"test:all": "npm run test:unit && npm run test:integration",
1212
"test:unit": "jest -c jest.unit.config.ts --collect-coverage",
13-
"test:integration": "jest -c jest.integration.config.ts --runInBand --collect-coverage",
13+
"test:integration": "npm run migrations:run && jest -c jest.integration.config.ts --runInBand --collect-coverage",
1414
"test:coverage": "jest --collect-coverage",
1515
"migrations:create": "node --loader ts-node/esm ./node_modules/typeorm/cli.js migration:create",
1616
"migrations:generate": "node --loader ts-node/esm ./node_modules/typeorm/cli.js migration:generate -d ormconfig.ts",
@@ -59,4 +59,4 @@
5959
"typeorm": "^0.3.17",
6060
"winston": "^3.10.0"
6161
}
62-
}
62+
}

0 commit comments

Comments
 (0)