update coverage test

This commit is contained in:
paul 2024-02-28 10:09:28 +01:00
parent 100d018d3c
commit a4b1fd9fa3
4 changed files with 4 additions and 6 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
node_modules node_modules
dist dist
src/

View file

@ -54,12 +54,8 @@ When the data schema is updated, the database needs to be synchronised with the
migrationName=<name> yarn migration:generate migrationName=<name> yarn migration:generate
``` ```
##################################################################################################################################
# Hiring Test # Hiring Test
##################################################################################################################################
When working on the following exercise, in addition to answering the product need, to give particular attention to the following points: When working on the following exercise, in addition to answering the product need, to give particular attention to the following points:
- Readability - Readability

View file

@ -1,4 +1,5 @@
{ {
"coveragePathIgnorePatterns": ["seed-*"],
"moduleFileExtensions": ["js", "json", "ts"], "moduleFileExtensions": ["js", "json", "ts"],
"rootDir": "./src", "rootDir": "./src",
"testEnvironment": "node", "testEnvironment": "node",

View file

@ -17,7 +17,7 @@
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "NODE_ENV=test jest --config ./jest.json", "test": "NODE_ENV=test jest --config ./jest.json",
"test:watch": "jest --watch --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: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", "test:e2e": "NODE_ENV=test jest --config ./test-e2e/jest-e2e.json",
"typeorm": "ts-node ./node_modules/typeorm/cli -d ./config/dataSource.ts", "typeorm": "ts-node ./node_modules/typeorm/cli -d ./config/dataSource.ts",