Skip to content

Commit 4116768

Browse files
committed
Use docker compose in place of docker-compose
1 parent 7f1c20a commit 4116768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/leasing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"prettier": "prettier --check ./src",
2525
"script:expire-listings": "ts-node src/scripts/expire-listings.ts",
2626
"start": "npm run migrate:up && node -r dotenv/config build/index",
27-
"test:create-db": "docker-compose -f ../../docker-compose.yaml up -d && docker exec -i onecore-sql sh -lc '/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \"$MSSQL_SA_PASSWORD\" -b -Q \"IF DB_ID(N'\\''tenants-leases-test'\\'') IS NULL BEGIN CREATE DATABASE [tenants-leases-test]; END\"'",
27+
"test:create-db": "docker compose -f ../../docker-compose.yaml up -d && docker exec -i onecore-sql sh -lc '/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P \"$MSSQL_SA_PASSWORD\" -b -Q \"IF DB_ID(N'\\''tenants-leases-test'\\'') IS NULL BEGIN CREATE DATABASE [tenants-leases-test]; END\"'",
2828
"test:drop-db": "docker compose -f ../../docker-compose.yaml up -d && docker exec -i onecore-sql sh -c '/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $MSSQL_SA_PASSWORD -Q \"DROP DATABASE [tenants-leases-test];\"'",
2929
"test": "npm run test:create-db && DOTENV_CONFIG_PATH=.env.test node -r dotenv/config ../../node_modules/.bin/jest --config jest.config.js",
3030
"test:ci": "DOTENV_CONFIG_PATH=.env.ci node -r dotenv/config ../../node_modules/.bin/jest --config jest.config.js",

0 commit comments

Comments
 (0)