Skip to content

Commit 369331c

Browse files
committed
feat: deployment complete
1 parent 311a3a2 commit 369331c

17 files changed

Lines changed: 309 additions & 68 deletions

ecosystem.config.js

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

ecosystem.config.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// ecosystem.config.js
2+
module.exports = {
3+
apps: [
4+
{
5+
name: 'notify-server',
6+
script: './dist/main.js',
7+
instances: 1,
8+
autorestart: true,
9+
watch: false,
10+
max_memory_restart: '200M',
11+
env: {
12+
NODE_ENV: 'production',
13+
},
14+
},
15+
],
16+
};
17+
module.exports = {
18+
apps: [
19+
{
20+
name: 'notify-server',
21+
script: './dist/main.js',
22+
instances: 1, // or "max" for all CPUs
23+
autorestart: true,
24+
watch: false, // Set true if you want hot reload in dev
25+
max_memory_restart: '200M',
26+
env: {
27+
NODE_ENV: 'production',
28+
},
29+
},
30+
],
31+
};

jest-stare/index.html

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h2>Snapshots</h2>
154154
&quot;unmatched&quot;: 0,
155155
&quot;updated&quot;: 0
156156
},
157-
&quot;startTime&quot;: 1748358209653,
157+
&quot;startTime&quot;: 1748763027193,
158158
&quot;success&quot;: false,
159159
&quot;testResults&quot;: [
160160
{
@@ -165,10 +165,10 @@ <h2>Snapshots</h2>
165165
&quot;numTodoTests&quot;: 0,
166166
&quot;openHandles&quot;: [],
167167
&quot;perfStats&quot;: {
168-
&quot;end&quot;: 1748358215417,
169-
&quot;runtime&quot;: 5113,
170-
&quot;slow&quot;: true,
171-
&quot;start&quot;: 1748358210304
168+
&quot;end&quot;: 1748763032488,
169+
&quot;runtime&quot;: 4644,
170+
&quot;slow&quot;: false,
171+
&quot;start&quot;: 1748763027844
172172
},
173173
&quot;skipped&quot;: false,
174174
&quot;snapshot&quot;: {
@@ -180,14 +180,14 @@ <h2>Snapshots</h2>
180180
&quot;unmatched&quot;: 0,
181181
&quot;updated&quot;: 0
182182
},
183-
&quot;testFilePath&quot;: &quot;D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test\\logger\\log.controller.spec.ts&quot;,
183+
&quot;testFilePath&quot;: &quot;D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src\\test\\logger\\log.controller.spec.ts&quot;,
184184
&quot;testResults&quot;: [
185185
{
186186
&quot;ancestorTitles&quot;: [
187187
&quot;LogController&quot;,
188188
&quot;getLogs&quot;
189189
],
190-
&quot;duration&quot;: 19,
190+
&quot;duration&quot;: 20,
191191
&quot;failureDetails&quot;: [],
192192
&quot;failureMessages&quot;: [],
193193
&quot;fullName&quot;: &quot;LogController getLogs should return logs with default pagination&quot;,
@@ -203,7 +203,7 @@ <h2>Snapshots</h2>
203203
&quot;LogController&quot;,
204204
&quot;getLogById&quot;
205205
],
206-
&quot;duration&quot;: 2,
206+
&quot;duration&quot;: 3,
207207
&quot;failureDetails&quot;: [],
208208
&quot;failureMessages&quot;: [],
209209
&quot;fullName&quot;: &quot;LogController getLogById should return a log by ID&quot;,
@@ -219,7 +219,7 @@ <h2>Snapshots</h2>
219219
&quot;LogController&quot;,
220220
&quot;getLogById&quot;
221221
],
222-
&quot;duration&quot;: 13,
222+
&quot;duration&quot;: 12,
223223
&quot;failureDetails&quot;: [],
224224
&quot;failureMessages&quot;: [],
225225
&quot;fullName&quot;: &quot;LogController getLogById should throw NotFoundException if log not found&quot;,
@@ -251,7 +251,7 @@ <h2>Snapshots</h2>
251251
&quot;LogController&quot;,
252252
&quot;deleteLogById&quot;
253253
],
254-
&quot;duration&quot;: 3,
254+
&quot;duration&quot;: 2,
255255
&quot;failureDetails&quot;: [],
256256
&quot;failureMessages&quot;: [],
257257
&quot;fullName&quot;: &quot;LogController deleteLogById should throw NotFoundException if log not found&quot;,
@@ -267,7 +267,7 @@ <h2>Snapshots</h2>
267267
&quot;LogController&quot;,
268268
&quot;getLogStats&quot;
269269
],
270-
&quot;duration&quot;: 4,
270+
&quot;duration&quot;: 1,
271271
&quot;failureDetails&quot;: [],
272272
&quot;failureMessages&quot;: [],
273273
&quot;fullName&quot;: &quot;LogController getLogStats should return log statistics&quot;,
@@ -283,7 +283,7 @@ <h2>Snapshots</h2>
283283
&quot;LogController&quot;,
284284
&quot;getLogStats&quot;
285285
],
286-
&quot;duration&quot;: 2,
286+
&quot;duration&quot;: 1,
287287
&quot;failureDetails&quot;: [],
288288
&quot;failureMessages&quot;: [],
289289
&quot;fullName&quot;: &quot;LogController getLogStats should return stats without filters&quot;,
@@ -305,10 +305,10 @@ <h2>Snapshots</h2>
305305
&quot;numTodoTests&quot;: 0,
306306
&quot;openHandles&quot;: [],
307307
&quot;perfStats&quot;: {
308-
&quot;end&quot;: 1748358215656,
309-
&quot;runtime&quot;: 5359,
310-
&quot;slow&quot;: true,
311-
&quot;start&quot;: 1748358210297
308+
&quot;end&quot;: 1748763032803,
309+
&quot;runtime&quot;: 4959,
310+
&quot;slow&quot;: false,
311+
&quot;start&quot;: 1748763027844
312312
},
313313
&quot;skipped&quot;: false,
314314
&quot;snapshot&quot;: {
@@ -320,14 +320,14 @@ <h2>Snapshots</h2>
320320
&quot;unmatched&quot;: 0,
321321
&quot;updated&quot;: 0
322322
},
323-
&quot;testFilePath&quot;: &quot;D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test\\notification\\notification.controller.spec.ts&quot;,
323+
&quot;testFilePath&quot;: &quot;D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src\\test\\notification\\notification.controller.spec.ts&quot;,
324324
&quot;testResults&quot;: [
325325
{
326326
&quot;ancestorTitles&quot;: [
327327
&quot;NotificationController&quot;,
328328
&quot;send&quot;
329329
],
330-
&quot;duration&quot;: 26,
330+
&quot;duration&quot;: 22,
331331
&quot;failureDetails&quot;: [],
332332
&quot;failureMessages&quot;: [],
333333
&quot;fullName&quot;: &quot;NotificationController send should send notification and log successfully&quot;,
@@ -343,7 +343,7 @@ <h2>Snapshots</h2>
343343
&quot;NotificationController&quot;,
344344
&quot;send&quot;
345345
],
346-
&quot;duration&quot;: 9,
346+
&quot;duration&quot;: 7,
347347
&quot;failureDetails&quot;: [],
348348
&quot;failureMessages&quot;: [],
349349
&quot;fullName&quot;: &quot;NotificationController send should throw error if strategy send fails&quot;,
@@ -450,7 +450,7 @@ <h2>Snapshots</h2>
450450
],
451451
&quot;rootDir&quot;: &quot;D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog&quot;,
452452
&quot;runTestsByPath&quot;: false,
453-
&quot;seed&quot;: 283750242,
453+
&quot;seed&quot;: -1306355599,
454454
&quot;skipFilter&quot;: false,
455455
&quot;snapshotFormat&quot;: {
456456
&quot;escapeString&quot;: false,

jest-stare/jest-results.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"unmatched": 0,
2727
"updated": 0
2828
},
29-
"startTime": 1748358209653,
29+
"startTime": 1748763027193,
3030
"success": false,
3131
"testResults": [
3232
{
@@ -37,10 +37,10 @@
3737
"numTodoTests": 0,
3838
"openHandles": [],
3939
"perfStats": {
40-
"end": 1748358215417,
41-
"runtime": 5113,
42-
"slow": true,
43-
"start": 1748358210304
40+
"end": 1748763032488,
41+
"runtime": 4644,
42+
"slow": false,
43+
"start": 1748763027844
4444
},
4545
"skipped": false,
4646
"snapshot": {
@@ -52,14 +52,14 @@
5252
"unmatched": 0,
5353
"updated": 0
5454
},
55-
"testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test\\logger\\log.controller.spec.ts",
55+
"testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src\\test\\logger\\log.controller.spec.ts",
5656
"testResults": [
5757
{
5858
"ancestorTitles": [
5959
"LogController",
6060
"getLogs"
6161
],
62-
"duration": 19,
62+
"duration": 20,
6363
"failureDetails": [],
6464
"failureMessages": [],
6565
"fullName": "LogController getLogs should return logs with default pagination",
@@ -75,7 +75,7 @@
7575
"LogController",
7676
"getLogById"
7777
],
78-
"duration": 2,
78+
"duration": 3,
7979
"failureDetails": [],
8080
"failureMessages": [],
8181
"fullName": "LogController getLogById should return a log by ID",
@@ -91,7 +91,7 @@
9191
"LogController",
9292
"getLogById"
9393
],
94-
"duration": 13,
94+
"duration": 12,
9595
"failureDetails": [],
9696
"failureMessages": [],
9797
"fullName": "LogController getLogById should throw NotFoundException if log not found",
@@ -123,7 +123,7 @@
123123
"LogController",
124124
"deleteLogById"
125125
],
126-
"duration": 3,
126+
"duration": 2,
127127
"failureDetails": [],
128128
"failureMessages": [],
129129
"fullName": "LogController deleteLogById should throw NotFoundException if log not found",
@@ -139,7 +139,7 @@
139139
"LogController",
140140
"getLogStats"
141141
],
142-
"duration": 4,
142+
"duration": 1,
143143
"failureDetails": [],
144144
"failureMessages": [],
145145
"fullName": "LogController getLogStats should return log statistics",
@@ -155,7 +155,7 @@
155155
"LogController",
156156
"getLogStats"
157157
],
158-
"duration": 2,
158+
"duration": 1,
159159
"failureDetails": [],
160160
"failureMessages": [],
161161
"fullName": "LogController getLogStats should return stats without filters",
@@ -177,10 +177,10 @@
177177
"numTodoTests": 0,
178178
"openHandles": [],
179179
"perfStats": {
180-
"end": 1748358215656,
181-
"runtime": 5359,
182-
"slow": true,
183-
"start": 1748358210297
180+
"end": 1748763032803,
181+
"runtime": 4959,
182+
"slow": false,
183+
"start": 1748763027844
184184
},
185185
"skipped": false,
186186
"snapshot": {
@@ -192,14 +192,14 @@
192192
"unmatched": 0,
193193
"updated": 0
194194
},
195-
"testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test\\notification\\notification.controller.spec.ts",
195+
"testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src\\test\\notification\\notification.controller.spec.ts",
196196
"testResults": [
197197
{
198198
"ancestorTitles": [
199199
"NotificationController",
200200
"send"
201201
],
202-
"duration": 26,
202+
"duration": 22,
203203
"failureDetails": [],
204204
"failureMessages": [],
205205
"fullName": "NotificationController send should send notification and log successfully",
@@ -215,7 +215,7 @@
215215
"NotificationController",
216216
"send"
217217
],
218-
"duration": 9,
218+
"duration": 7,
219219
"failureDetails": [],
220220
"failureMessages": [],
221221
"fullName": "NotificationController send should throw error if strategy send fails",

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
preset: 'ts-jest',
33
testEnvironment: 'node',
4-
roots: ['<rootDir>/src', '<rootDir>/test'],
5-
testMatch: ['<rootDir>/test/**/*.spec.ts'],
4+
roots: ['<rootDir>/src', '<rootDir>/src/test'],
5+
testMatch: ['<rootDir>/src/test/**/*.spec.ts'],
66
moduleFileExtensions: ['ts', 'js', 'json'],
77
transform: {
88
'^.+\\.ts$': ['ts-jest', {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

0 commit comments

Comments
 (0)