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
|
||||
|
||||
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
|
||||
docker exec v3-user sh -c "npx prisma migrate dev"
|
||||
npm run migrate
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -114,19 +114,13 @@ The integration tests use a dedicated database (see *db-test* section of *docker
|
|||
```bash
|
||||
# run all tests (unit + integration)
|
||||
npm run test
|
||||
```
|
||||
|
||||
```bash
|
||||
# unit tests only
|
||||
npm run test:unit
|
||||
```
|
||||
|
||||
```bash
|
||||
# integration tests only
|
||||
npm run test:integration
|
||||
```
|
||||
|
||||
```bash
|
||||
# coverage
|
||||
npm run test:cov
|
||||
```
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"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: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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue