Skip to content

Commit fdd29e5

Browse files
committed
Re-applying lost commits...
1 parent fc9fb86 commit fdd29e5

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"lint": "npm run lint --workspaces --if-present",
3939
"lint:fix": "npm run lint:fix --workspaces --if-present",
4040
"prettier": "npm run prettier --workspaces --if-present",
41+
"test": "npm run test --workspaces --if-present",
4142
"typecheck": "npm run typecheck --workspaces --if-present"
4243
},
4344
"dependencies": {

services/leasing/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
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": "DOTENV_CONFIG_PATH=.env.test node -r dotenv/config ../../node_modules/.bin/jest --config jest.config.js",
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\"'",
28+
"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];\"'",
29+
"test": "npm run test:create-db && DOTENV_CONFIG_PATH=.env.test node -r dotenv/config ../../node_modules/.bin/jest --config jest.config.js",
2830
"test:ci": "DOTENV_CONFIG_PATH=.env.ci node -r dotenv/config ../../node_modules/.bin/jest --config jest.config.js",
2931
"test:watch": "DOTENV_CONFIG_PATH=.env.test jest --watch",
3032
"ts:watch": "tsc --watch --noEmit",
@@ -34,6 +36,8 @@
3436
"@iteam/config": "^12.1.2",
3537
"@koa/cors": "^5.0.0",
3638
"@koa/router": "^12.0.1",
39+
"@onecore/types": "*",
40+
"@onecore/utilities": "*",
3741
"@types/easy-soap-request": "^5.6.0",
3842
"@types/swagger-jsdoc": "^6.0.4",
3943
"@types/swagger-ui": "^3.52.4",
@@ -62,9 +66,7 @@
6266
"swagger-jsdoc": "^6.2.8",
6367
"tedious": "^18.6.1",
6468
"ts-pattern": "^5.7.0",
65-
"zod": "^3.25.67",
66-
"@onecore/types": "*",
67-
"@onecore/utilities": "*"
69+
"zod": "^3.25.67"
6870
},
6971
"devDependencies": {
7072
"@eslint/compat": "^1.1.1",
@@ -75,10 +77,10 @@
7577
"@types/easy-soap-request": "^5.6.0",
7678
"@types/jest": "^29.5.14",
7779
"@types/koa": "^2.15.0",
78-
"@types/koa-bodyparser": "^4.3.12",
79-
"@types/koa-pino-logger": "3.0.4",
8080
"@types/koa__cors": "^5.0.0",
8181
"@types/koa__router": "12.0.4",
82+
"@types/koa-bodyparser": "^4.3.12",
83+
"@types/koa-pino-logger": "3.0.4",
8284
"@types/pino-multi-stream": "^5.1.6",
8385
"@types/supertest": "^6.0.2",
8486
"@typescript-eslint/eslint-plugin": "^8.38.0",
@@ -96,4 +98,4 @@
9698
"typescript": "^5.6.2",
9799
"typescript-eslint": "8.38.0"
98100
}
99-
}
101+
}

0 commit comments

Comments
 (0)