Skip to content

Commit 10e2468

Browse files
committed
[server] Move start-services into test:db, so it can be called separately
1 parent 2149606 commit 10e2468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"clean": "rimraf dist",
1818
"clean:node": "rimraf node_modules",
1919
"purge": "yarn clean && yarn clean:node && yarn run rimraf yarn.lock",
20-
"test": "cleanup() { echo 'Cleanup started'; yarn stop-services; }; trap cleanup EXIT; yarn test:unit && yarn start-services && yarn test:db",
20+
"test": "cleanup() { echo 'Cleanup started'; yarn stop-services; }; trap cleanup EXIT; yarn test:unit && yarn test:db",
2121
"test:unit": "TS_NODE_FILES=true mocha --opts mocha.opts './**/*.spec.ts' --exclude './node_modules/**'",
22-
"test:db": ". $(leeway run components/gitpod-db:db-test-env) && TS_NODE_FILES=true mocha --opts mocha.opts './**/*.spec.db.ts' --exclude './node_modules/**'",
22+
"test:db": ". $(leeway run components/gitpod-db:db-test-env) && yarn start-services && TS_NODE_FILES=true mocha --opts mocha.opts './**/*.spec.db.ts' --exclude './node_modules/**'",
2323
"start-services": "yarn start-testdb && yarn start-redis && yarn start-spicedb",
2424
"stop-services": "yarn stop-redis && yarn stop-spicedb",
2525
"start-testdb": "if netstat -tuln | grep ':23306 '; then echo 'Mysql is already running.'; else leeway run components/gitpod-db:init-testdb; fi",

0 commit comments

Comments
 (0)