feat: add backend and worker test scripts to package.json and create a combined test command

This commit is contained in:
keven1024
2026-02-27 16:24:21 +08:00
parent 7663e8eb0a
commit 60831c779e

View File

@@ -12,6 +12,9 @@
"lint:front": "cd front && pnpm nuxt typecheck",
"lint:backend": "cd backend && golangci-lint run",
"lint:worker": "cd worker && golangci-lint run",
"test:backend": "cd backend && go test -v ./test/...",
"test:worker": "cd worker && go test -v ./test/...",
"test": "concurrently -n backend,worker -c green,yellow 'pnpm:test:backend' 'pnpm:test:worker'",
"prepare": "husky",
"up-deps": "concurrently -n backend,worker,models,utils -c green,yellow,blue,magenta 'pnpm:up-deps:backend' 'pnpm:up-deps:worker' 'pnpm:up-deps:models' 'pnpm:up-deps:utils'",
"up-deps:backend": "cd backend && go get -u",