Added:Some Setup for unit-tesitng
Showing
- jest.config.ts 15 additions, 0 deletionsjest.config.ts
- package.json 5 additions, 2 deletionspackage.json
- src/gcl/gcl.controller.ts 2 additions, 2 deletionssrc/gcl/gcl.controller.ts
- src/index.ts 7 additions, 6 deletionssrc/index.ts
- src/inversify/inversify.config.ts 1 addition, 1 deletionsrc/inversify/inversify.config.ts
- src/test/industry-4.0/industry-4.0.spec.ts 59 additions, 0 deletionssrc/test/industry-4.0/industry-4.0.spec.ts
- tsconfig.json 2 additions, 2 deletionstsconfig.json
jest.config.ts
0 → 100644
... | @@ -4,9 +4,9 @@ | ... | @@ -4,9 +4,9 @@ |
"description": "", | "description": "", | ||
"main": "index.js", | "main": "index.js", | ||
"scripts": { | "scripts": { | ||
"test": "jest --testTimeout=20000 --watch", | "test": "jest", | ||
"test:watch": "NODE_ENV=dev jest --watch", | "test:watch": "NODE_ENV=dev jest --watch", | ||
"test:coverage": "NODE_ENV=dev jest --testTimeout=20000 --coverage", | "test:coverage": "jest --testTimeout=20000 --coverage", | ||
"dev": "nodemon src/index.ts", | "dev": "nodemon src/index.ts", | ||
"start": "node dist/index.js", | "start": "node dist/index.js", | ||
"build": "rimraf dist && npx tsc" | "build": "rimraf dist && npx tsc" | ||
... | @@ -23,6 +23,7 @@ | ... | @@ -23,6 +23,7 @@ |
"express": "^4.18.2", | "express": "^4.18.2", | ||
"ini": "^4.1.1", | "ini": "^4.1.1", | ||
"inversify": "^6.0.2", | "inversify": "^6.0.2", | ||
"inversify-binding-decorators": "^4.0.0", | |||
"inversify-express-utils": "^6.4.6", | "inversify-express-utils": "^6.4.6", | ||
"jsonata": "^2.0.3", | "jsonata": "^2.0.3", | ||
"moment": "^2.29.4", | "moment": "^2.29.4", | ||
... | @@ -36,9 +37,11 @@ | ... | @@ -36,9 +37,11 @@ |
"@types/cors": "^2.8.17", | "@types/cors": "^2.8.17", | ||
"@types/express": "^4.17.21", | "@types/express": "^4.17.21", | ||
"@types/ini": "^1.3.33", | "@types/ini": "^1.3.33", | ||
"@types/jest": "^29.5.11", | |||
"@types/uuid": "^9.0.7", | "@types/uuid": "^9.0.7", | ||
"jest": "^29.7.0", | "jest": "^29.7.0", | ||
"nodemon": "^3.0.1", | "nodemon": "^3.0.1", | ||
"ts-jest": "^29.1.1", | |||
"ts-node": "^10.9.1", | "ts-node": "^10.9.1", | ||
"typescript": "^5.2.2" | "typescript": "^5.2.2" | ||
} | } | ||
... | ... |
src/test/industry-4.0/industry-4.0.spec.ts
0 → 100644
Please register or sign in to comment