Skip to content

Commit

Permalink
Cleaned up project and added restAPI coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias-Llera committed May 3, 2023
1 parent 3ff7252 commit 0f01733
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 4,483 deletions.
4,057 changes: 0 additions & 4,057 deletions package-lock.json

This file was deleted.

22 changes: 0 additions & 22 deletions package.json

This file was deleted.

14 changes: 13 additions & 1 deletion restapi/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
module.exports = {
preset: 'ts-jest'
preset: 'ts-jest',
collectCoverage: true,
collectCoverageFrom: [
'build/src/**/*.js',
'build/!src/**/*.test.js',
'build/!src/index.js',
],
coverageReporters: [
'json',
'lcov',
'text',
'text-summary',
],
};
2 changes: 1 addition & 1 deletion restapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "ts-node-dev src/server.ts",
"start": "node build/src/server.js",
"tsc": "tsc",
"test": "jest"
"test": "jest --coverage --watchAll=false"
},
"keywords": [],
"author": "",
Expand Down
23 changes: 0 additions & 23 deletions restapi/test/builders/friendBuilderTests.ts

This file was deleted.

30 changes: 0 additions & 30 deletions restapi/test/builders/locationBuilderTests.ts

This file was deleted.

Empty file.
74 changes: 0 additions & 74 deletions restapi/test/validators/friendValidatorTests.ts

This file was deleted.

202 changes: 0 additions & 202 deletions restapi/test/validators/locationValidatorsTests.ts

This file was deleted.

Loading

0 comments on commit 0f01733

Please sign in to comment.