Skip to content

Commit c9c86f1

Browse files
committed
Refactor scripts to automate jest test
1 parent a963a12 commit c9c86f1

File tree

5 files changed

+293
-68
lines changed

5 files changed

+293
-68
lines changed

mlflow/package-lock.json

Lines changed: 248 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mlflow/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"scripts": {
1515
"clean": "rimraf lib",
1616
"build": "npm run clean && tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
17-
"test": "jest",
17+
"start-mlflow": "mlflow ui --port 5001",
18+
"test": "concurrently \"npm run start-mlflow\" \"wait-on http://localhost:5001 && jest\" --kill-others --success first",
19+
"posttest": "kill $(lsof -t -i:5001) || true",
1820
"lint": "eslint src",
1921
"docs": ""
2022
},
@@ -32,6 +34,7 @@
3234
"@types/eslint__js": "^8.42.3",
3335
"@types/jest": "^29.5.14",
3436
"@types/node": "^22.5.4",
37+
"concurrently": "^9.0.1",
3538
"eslint": "^9.12.0",
3639
"jest": "^29.7.0",
3740
"rimraf": "^6.0.1",
@@ -40,7 +43,8 @@
4043
"tsc-alias": "^1.8.10",
4144
"tsx": "^4.19.1",
4245
"typescript": "^5.6.2",
43-
"typescript-eslint": "^8.8.0"
46+
"typescript-eslint": "^8.8.0",
47+
"wait-on": "^8.0.1"
4448
},
4549
"engines": {
4650
"node": ">=22.7.0"

0 commit comments

Comments
 (0)