From a4b1fd9fa39f9b1e1753ce8fe3158e3654ad503a Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 28 Feb 2024 10:09:28 +0100 Subject: [PATCH] update coverage test --- .gitignore | 3 ++- README.md | 4 ---- jest.json | 1 + package.json | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 76add87..38ac603 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -dist \ No newline at end of file +dist +src/ \ No newline at end of file diff --git a/README.md b/README.md index 50d1131..30eb664 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,8 @@ When the data schema is updated, the database needs to be synchronised with the migrationName= yarn migration:generate ``` -################################################################################################################################## - # Hiring Test -################################################################################################################################## - When working on the following exercise, in addition to answering the product need, to give particular attention to the following points: - Readability diff --git a/jest.json b/jest.json index e384750..e4adc85 100644 --- a/jest.json +++ b/jest.json @@ -1,4 +1,5 @@ { + "coveragePathIgnorePatterns": ["seed-*"], "moduleFileExtensions": ["js", "json", "ts"], "rootDir": "./src", "testEnvironment": "node", diff --git a/package.json b/package.json index 2230fdf..1eb6cda 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "NODE_ENV=test jest --config ./jest.json", "test:watch": "jest --watch --config ./jest.json", - "test:cov": "jest --coverage", + "test:cov": "jest --collectCoverage --config ./jest.json", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "NODE_ENV=test jest --config ./test-e2e/jest-e2e.json", "typeorm": "ts-node ./node_modules/typeorm/cli -d ./config/dataSource.ts",