add testing workflow and update package.json

This commit is contained in:
2025-03-26 15:53:39 -07:00
parent 66642e7050
commit 4990e65c3e
2 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,14 @@ services:
- redis
volumes:
- .:/usr/src/app
test:
build: .
command: npm run test
env_file: .env
depends_on:
- redis
volumes:
- .:/usr/src/app
redis:
image: redis:alpine
ports:

View File

@@ -9,7 +9,7 @@
"start:dev": "npm run build:dev && node ./dist/index.js",
"start": "npm run build && node ./dist/index.js",
"generate": "graphql-codegen --config codegen.ts",
"test": "jest"
"test": "npm run build:dev && jest"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.3",