Skip to content

Commit

Permalink
modified docker-compose command to docker compose for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-mfsi committed Aug 5, 2024
1 parent 2fbd7c6 commit 3f8399f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"yaml": "^2.1.3"
},
"scripts": {
"docker:up": "docker-compose up -d",
"docker:up": "docker compose up -d",
"prisma-init": "prisma generate && prisma migrate deploy ",
"start": "yarn prisma-init && node ./dist/index.js",
"start-inspect": "node --inspect=0.0.0.0:9229 ./dist/index.js",
"test": "yarn run before:tests && DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests?schema=public' yarn jest --coverage --runInBand --transformIgnorePatterns 'node_modules/(?!(dm3-lib-\\w*)/)'",
"build": "yarn tsc && cp ./config.yml ./dist/config.yml | true",
"build:schema": "sh ./schemas.sh",
"createDeliveryServiceProfile": "node --no-warnings ./cli.js",
"before:tests": "docker-compose -f docker-compose.test.yml up -d && DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests?schema=public' yarn prisma-init"
"before:tests": "docker compose -f docker-compose.test.yml up -d && DATABASE_URL='postgresql://prisma:prisma@localhost:5433/tests?schema=public' yarn prisma-init"
},
"devDependencies": {
"@babel/core": "^7.19.6",
Expand Down
6 changes: 3 additions & 3 deletions packages/delivery-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"yaml": "^2.1.3"
},
"scripts": {
"docker:up": "docker-compose up -d",
"docker:up": "docker compose up -d",
"start": "node ./dist/index.js",
"start-inspect": "node --inspect=0.0.0.0:9229 ./dist/index.js",
"test": "yarn run before:tests && jest --coverage --runInBand --transformIgnorePatterns 'node_modules/(?!(dm3-lib-\\w*)/)' ",
"build": "yarn tsc ",
"createDeliveryServiceProfile": "node --no-warnings ./cli.js",
"before:tests": "docker-compose -f docker-compose.test.yml up -d",
"after:tests": "docker-compose -f docker-compose.test.yml down"
"before:tests": "docker compose -f docker-compose.test.yml up -d",
"after:tests": "docker compose -f docker-compose.test.yml down"
},
"devDependencies": {
"@babel/core": "^7.19.6",
Expand Down

0 comments on commit 3f8399f

Please sign in to comment.