Skip to content

Commit

Permalink
refactor: some minor fixes on file domain and add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Murzbul committed Mar 24, 2024
1 parent 9b5a5be commit a8444ea
Show file tree
Hide file tree
Showing 186 changed files with 1,807 additions and 1,154 deletions.
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ stress:
@echo '************ ************'
artillery run artillery.yml

ts_check:
@echo '************ ************'
@echo '************ Exec NODE TS CHECK ************'
@echo '************ ************'
docker compose exec node pnpm ts-check

init:
@echo '************ ************'
@echo '************ Init NODE ************'
Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ module.exports = {
"!dist/src/Main/Infrastructure/Repositories/RedisCacheRepository.{js,ts}",
"!dist/src/Main/Infrastructure/Repositories/BaseMongooseRepository.{js,ts}",
"!dist/src/Main/Infrastructure/Orm/MongooseAggregatePaginator.{js,ts}",
"!dist/src/Main/Infrastructure/Filesystem/MinioStrategy.{js,ts}",
"!dist/src/Main/Infrastructure/UseCases/SyncDbUseCase.{js,ts}",
"!dist/src/**/*Command*.{js,ts}",
"!dist/src/**/*Document.{js,ts}",
"!dist/src/**/Tests/*.{js,ts}",
Expand Down
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"watch": [
"src/*"
],
"exec": "npm run build && node --env-file=.env --inspect=0.0.0.0:9229 ./dist/src/index.js",
"exec": "npm run build && node --inspect=0.0.0.0:9229 ./dist/src/index.js",
"legacyWatch": true,
"ext": "js,ts,json,hbs"
}
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"author": "Nathan M. Russo",
"license": "MIT",
"dependencies": {
"@digichanges/shared-experience": "^1.4.1",
"@faker-js/faker": "^8.4.1",
"@fastify/compress": "^7.0.0",
"@fastify/cors": "^9.0.1",
Expand All @@ -46,6 +45,7 @@
"axios": "^1.6.7",
"bcrypt": "^5.1.1",
"commander": "^10.0.1",
"cwebp": "^3.0.0",
"dayjs": "^1.11.10",
"dependency-cruiser": "^16.2.3",
"dotenv": "^16.4.5",
Expand Down Expand Up @@ -77,25 +77,24 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@commitlint/cli": "^19.2.0",
"@commitlint/config-conventional": "^19.1.0",
"@shelf/jest-mongodb": "^4.2.0",
"@types/amqplib": "^0.10.4",
"@types/bcrypt": "^5.0.2",
"@types/config": "^0.0.41",
"@types/jest": "^29.5.12",
"@types/jwt-simple": "^0.5.36",
"@types/md5": "^2.3.5",
"@types/node": "^20.11.20",
"@types/node": "^20.11.28",
"@types/node-cron": "^3.0.11",
"@types/nodemailer": "^6.4.14",
"@types/pg": "^8.11.1",
"@types/qs": "^6.9.11",
"@types/shelljs": "^0.8.15",
"@types/supertest": "^2.0.16",
"@types/web-push": "^3.6.3",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"cpy": "^9.0.1",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
Expand All @@ -110,7 +109,7 @@
"rimraf": "^3.0.2",
"supertest": "^6.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
},
"type": "commonjs",
"engines": {
Expand Down
Loading

0 comments on commit a8444ea

Please sign in to comment.