test ci --check
This commit is contained in:
parent
fe24afb712
commit
7b9d2940c2
|
@ -0,0 +1,5 @@
|
||||||
|
# PRISMA
|
||||||
|
DATABASE_URL="postgresql://user:user@v3-user-db-test:5432/user?schema=public"
|
||||||
|
|
||||||
|
# POSTGRES
|
||||||
|
POSTGRES_IMAGE=postgres:15.0
|
|
@ -15,12 +15,14 @@
|
||||||
"start:prod": "node dist/main",
|
"start:prod": "node dist/main",
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||||
"test": "npm run migrate-test && dotenv -e .env.test jest",
|
"test": "npm run migrate-test && dotenv -e .env.test jest",
|
||||||
|
"test:ci": "npm run migrate-test-ci && dotenv -e ci/.env.ci jest",
|
||||||
"test:unit": "jest --testPathIgnorePatterns 'integration' --verbose",
|
"test:unit": "jest --testPathIgnorePatterns 'integration' --verbose",
|
||||||
"test:integration": "npm run migrate-test && dotenv -e .env.test -- jest --testPathPattern 'integration' --verbose",
|
"test:integration": "npm run migrate-test && dotenv -e .env.test -- jest --testPathPattern 'integration' --verbose",
|
||||||
"test:cov": "npm run migrate-test && dotenv -e .env.test -- jest --coverage",
|
"test:cov": "npm run migrate-test && dotenv -e .env.test -- jest --coverage",
|
||||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||||
"migrate": "docker exec v3-user sh -c 'npx prisma migrate dev'",
|
"migrate": "docker exec v3-user sh -c 'npx prisma migrate dev'",
|
||||||
"migrate-test": "dotenv -e .env.test -- npx prisma migrate dev --name postgres-init"
|
"migrate-test": "dotenv -e .env.test -- npx prisma migrate dev --name postgres-init",
|
||||||
|
"migrate-test-ci": "dotenv -e ci/.env.ci -- npx prisma migrate dev --name postgres-init"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@automapper/classes": "^8.7.7",
|
"@automapper/classes": "^8.7.7",
|
||||||
|
|
Loading…
Reference in New Issue