mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-16 23:40:32 +00:00
add testing workflow and update package.json
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user