update readme
This commit is contained in:
parent
1e32c342f6
commit
d21ab5e71d
10
README.md
10
README.md
|
@ -38,10 +38,10 @@ A RabbitMQ instance is also required to send / receive messages when data has be
|
||||||
|
|
||||||
## Database migration
|
## Database migration
|
||||||
|
|
||||||
Before using the app, you need to launch the database migration inside the container :
|
Before using the app, you need to launch the database migration (it will be launched inside the container) :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker exec v3-user sh -c "npx prisma migrate dev"
|
npm run migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -114,19 +114,13 @@ The integration tests use a dedicated database (see *db-test* section of *docker
|
||||||
```bash
|
```bash
|
||||||
# run all tests (unit + integration)
|
# run all tests (unit + integration)
|
||||||
npm run test
|
npm run test
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# unit tests only
|
# unit tests only
|
||||||
npm run test:unit
|
npm run test:unit
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# integration tests only
|
# integration tests only
|
||||||
npm run test:integration
|
npm run test:integration
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# coverage
|
# coverage
|
||||||
npm run test:cov
|
npm run test:cov
|
||||||
```
|
```
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
"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-auth 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"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue