Skip to content

Commit c67a6a8

Browse files
committed
finished notes service tests
1 parent e002159 commit c67a6a8

37 files changed

+190
-5477
lines changed

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
.DS_store
3-
app-schema.png
3+
app-schema.png
4+
/coverage

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
22
/build
33
.env
4-
dump.rdb
4+
dump.rdb
5+
/coverage

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
![Postgres](https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge&logo=postgresql&logoColor=white)
66
![Redis](https://img.shields.io/badge/redis-%23DD0031.svg?style=for-the-badge&logo=redis&logoColor=white)
77

8-
![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)
8+
![Jest](https://img.shields.io/badge/-jest-%23C21325?style=for-the-badge&logo=jest&logoColor=white)
99
![Postman](https://img.shields.io/badge/Postman-FF6C37?style=for-the-badge&logo=postman&logoColor=white)
1010
![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge&logo=swagger&logoColor=white)
11+
![Docker](https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge&logo=docker&logoColor=white)
1112
![GitHub Actions](https://img.shields.io/badge/github%20actions-%232671E5.svg?style=for-the-badge&logo=githubactions&logoColor=white)
1213
### REST API and *Clean Architecture* boilerplate/template written in `Node.js` and `Fastify`
13-
This is *notion-like* note application backend and *Clean Architecture boilerplate* with registration, authorization, collaborating, etc. You can create note, add tags to it and filter your notes, add and remove collaborators, customize your profile. More about functional you can read [here]()
14+
This is *notion-like* note application backend and *Clean Architecture boilerplate* with registration, authorization, collaborating, etc. You can create note, add tags to it and filter your notes, add and remove collaborators, customize your profile.
1415

1516
### **Features**
1617
+ User registration and authorization by `JWT`
@@ -21,8 +22,6 @@
2122
+ Receiving notes with pagination, update date sorting, tags filtering
2223
+ Adding and removing collaborators
2324

24-
### **Dependency injection diagram**
25-
<img src="app-schema.png">
2625

2726

2827

@@ -40,6 +39,14 @@ cd NodeNotes
4039
docker compose up --build
4140
```
4241

42+
## **`Jest` unit tests**
43+
- App covered with `Jest` unit tests
44+
- Coverage `85%` (checkout `coverage` folder)
45+
46+
To run all testsheets enter:
47+
```
48+
npm test
49+
```
4350

4451
## **`pgAdmin` panel**
4552

@@ -63,4 +70,4 @@ docker inspect <copied container id>
6370
<img src="screenshot.png">
6471

6572
---
66-
### Everything, including `Postman` tests, `GitHub ci/cd`, `Docker compose` and API itself was created and written by [LCcodder](https://github.com/LCcodder)
73+
### Everything, including `Postman` tests, unit tests, `GitHub ci/cd`, `Docker compose` and API itself was created and written by [LCcodder](https://github.com/LCcodder)

app-schema.png

-44.5 KB
Binary file not shown.

coverage/clover.xml

Lines changed: 0 additions & 281 deletions
This file was deleted.

coverage/coverage-final.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

coverage/lcov-report/auth/jwt/TokenGenerator.ts.html

Lines changed: 0 additions & 100 deletions
This file was deleted.

coverage/lcov-report/auth/jwt/index.html

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)