From d21ab5e71dbb4f40403ab6e551f157652713f17b Mon Sep 17 00:00:00 2001 From: Gsk54 Date: Fri, 6 Jan 2023 15:07:06 +0100 Subject: [PATCH] update readme --- README.md | 10 ++-------- package.json | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9368515..c9ded9d 100644 --- a/README.md +++ b/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 ``` diff --git a/package.json b/package.json index 62d76b8..9cc4748 100644 --- a/package.json +++ b/package.json @@ -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": {