package-installer-cli 1.3.3 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/dist/commands/email.js +1140 -0
  3. data/dist/email-templates/bugReport.js +108 -0
  4. data/dist/email-templates/collectors/bugReport.js +41 -0
  5. data/dist/email-templates/collectors/common.js +56 -0
  6. data/dist/email-templates/collectors/docs.js +41 -0
  7. data/dist/email-templates/collectors/featureRequest.js +47 -0
  8. data/dist/email-templates/collectors/improvement.js +52 -0
  9. data/dist/email-templates/collectors/index.js +8 -0
  10. data/dist/email-templates/collectors/question.js +31 -0
  11. data/dist/email-templates/collectors/templateRequest.js +53 -0
  12. data/dist/email-templates/docs.js +111 -0
  13. data/dist/email-templates/featureRequest.js +111 -0
  14. data/dist/email-templates/generator.js +62 -0
  15. data/dist/email-templates/improvement.js +121 -0
  16. data/dist/email-templates/index.js +14 -0
  17. data/dist/email-templates/question.js +101 -0
  18. data/dist/email-templates/styles.js +168 -0
  19. data/dist/email-templates/templateRequest.js +120 -0
  20. data/dist/email-templates/testEmail.js +56 -0
  21. data/dist/email-templates/types.js +1 -0
  22. data/dist/index.js +29 -1
  23. data/dist/utils/featureInstaller.js +4 -11
  24. data/features/ai/ai.json +547 -0
  25. data/features/analytics/analytics.json +4 -0
  26. data/features/auth/auth.json +473 -0
  27. data/features/auth/auth0/django/backend/apiexample/urls.py +10 -0
  28. data/features/auth/auth0/django/backend/apiexample/validator.py +21 -0
  29. data/features/auth/auth0/django/backend/apiexample/views.py +30 -0
  30. data/features/auth/auth0/django/backend/requirements.txt +4 -0
  31. data/features/auth/auth0/django/web-app/requirements.txt +4 -0
  32. data/features/auth/auth0/django/web-app/webappexample/settings.py +28 -0
  33. data/features/auth/auth0/django/web-app/webappexample/templates/index.html +16 -0
  34. data/features/auth/auth0/django/web-app/webappexample/urls.py +10 -0
  35. data/features/auth/auth0/django/web-app/webappexample/views.py +52 -0
  36. data/features/auth/auth0/go/backend/go.mod +8 -0
  37. data/features/auth/auth0/go/backend/main.go +60 -0
  38. data/features/auth/auth0/go/backend/middleware/jwt.go +81 -0
  39. data/features/auth/auth0/go/web-app/auth.go +56 -0
  40. data/features/auth/auth0/go/web-app/callback.go +52 -0
  41. data/features/auth/auth0/go/web-app/go.mod +11 -0
  42. data/features/auth/auth0/go/web-app/isAuthenticated.go +20 -0
  43. data/features/auth/auth0/go/web-app/login.go +47 -0
  44. data/features/auth/auth0/go/web-app/logout.go +38 -0
  45. data/features/auth/auth0/go/web-app/main.go +31 -0
  46. data/features/auth/auth0/go/web-app/router.go +44 -0
  47. data/features/auth/auth0/go/web-app/user.go +18 -0
  48. data/features/auth/auth0/ruby-on-rails/backend/Gemfile +1 -0
  49. data/features/auth/auth0/ruby-on-rails/backend/app/controllers/application_controller.rb +5 -0
  50. data/features/auth/auth0/ruby-on-rails/backend/app/controllers/concern/secured.rb +60 -0
  51. data/features/auth/auth0/ruby-on-rails/backend/app/controllers/private_controller.rb +6 -0
  52. data/features/auth/auth0/ruby-on-rails/backend/app/controllers/public-controller.rb +6 -0
  53. data/features/auth/auth0/ruby-on-rails/backend/app/lib/auth0_client.rb +59 -0
  54. data/features/auth/auth0/ruby-on-rails/web-app/Gemfile +2 -0
  55. data/features/auth/auth0/ruby-on-rails/web-app/auth0_controller.rb +41 -0
  56. data/features/auth/auth0/ruby-on-rails/web-app/config/auth0.yml +4 -0
  57. data/features/auth/auth0/ruby-on-rails/web-app/config/initializers/auth0.rb +14 -0
  58. data/features/auth/auth0/ruby-on-rails/web-app/config/routes.rb +6 -0
  59. data/features/auth/auth0/ruby-on-rails/web-app/config/secured.rb +11 -0
  60. data/features/auth/clerk/go/clerk_client.go +28 -0
  61. data/features/auth/clerk/go/go.mod +5 -0
  62. data/features/auth/clerk/go/main.go +82 -0
  63. data/features/auth/clerk/nextjs/typescript/app/layout.tsx +2 -2
  64. data/features/auth/clerk/ruby-on-rails/Gemfile +1 -0
  65. data/features/auth/clerk/ruby-on-rails/app.rb +50 -0
  66. data/features/auth/clerk/ruby-on-rails/config/initializers/clerk.rb +4 -0
  67. data/features/aws/aws.json +5207 -0
  68. data/features/database/database.json +246 -0
  69. data/features/docker/docker.json +108 -0
  70. data/features/features.json +44 -7321
  71. data/features/gitignore/gitignore.json +61 -0
  72. data/features/monitoring/monitoring.json +5 -0
  73. data/features/payment/payment.json +347 -0
  74. data/features/storage/storage.json +371 -0
  75. data/features/testing/jest/angularjs/typescript/tests/angularjs.test.ts +12 -0
  76. data/features/testing/jest/expressjs/javascript/tests/expressjs.test.js +10 -0
  77. data/features/testing/jest/expressjs/typescript/tests/expressjs.test.ts +10 -0
  78. data/features/testing/jest/nestjs/typescript/tests/nestjs.test.ts +10 -0
  79. data/features/testing/jest/nextjs/javascript/tests/nextjs.test.js +10 -0
  80. data/features/testing/jest/nextjs/typescript/tests/nextjs.test.ts +10 -0
  81. data/features/testing/jest/nuxtjs/typescript/tests/nuxtjs.test.ts +9 -0
  82. data/features/testing/jest/reactjs/javascript/tests/reactjs.test.js +10 -0
  83. data/features/testing/jest/reactjs/typescript/tests/reactjs.test.ts +10 -0
  84. data/features/testing/jest/reactjs-expressjs-shadcn/javascript/tests/reactjs.expressjs.shadcn.test.js +16 -0
  85. data/features/testing/jest/reactjs-expressjs-shadcn/typescript/tests/reactjs.expressjs.shadcn.test.ts +16 -0
  86. data/features/testing/jest/reactjs-nestjs-shadcn/typescript/tests/reactjs.nestjs.shadcn.test.ts +14 -0
  87. data/features/testing/jest/remixjs/typescript/tests/remixjs.test.ts +9 -0
  88. data/features/testing/jest/vuejs/javascript/tests/vuejs.test.ts +9 -0
  89. data/features/testing/jest/vuejs/typescript/tests/vuejs.test.ts +9 -0
  90. data/features/testing/testing.json +102 -0
  91. data/features/ui/ui.json +91 -0
  92. metadata +88 -8
  93. data/features/testing/jest/angularjs/tests/angularjs.test.js +0 -12
  94. data/features/testing/jest/expressjs/tests/javascript/expressjs.test.js +0 -12
  95. data/features/testing/jest/expressjs/tests/typescript/expressjs.test.ts +0 -12
  96. data/features/testing/jest/go/tests/go.test.js +0 -12
  97. data/features/testing/jest/nextjs/tests/javascript/nextjs.test.js +0 -12
  98. data/features/testing/jest/nextjs/tests/typescript/nextjs.test.ts +0 -12
@@ -0,0 +1,91 @@
1
+ {
2
+ "daisy": {
3
+ "angularjs": {
4
+ "typescript": {
5
+ ".postcssrc.json": {
6
+ "action": "create"
7
+ },
8
+ "package.json": {
9
+ "action": "install"
10
+ },
11
+ "src/styles.css": {
12
+ "action": "prepend"
13
+ }
14
+ }
15
+ },
16
+ "nextjs": {
17
+ "javascript": {
18
+ "app/globals.css": {
19
+ "action": "prepend"
20
+ },
21
+ "package.json": {
22
+ "action": "install"
23
+ },
24
+ "postcss.config.mjs": {
25
+ "action": "create"
26
+ }
27
+ },
28
+ "typescript": {
29
+ "app/globals.css": {
30
+ "action": "prepend"
31
+ },
32
+ "package.json": {
33
+ "action": "install"
34
+ },
35
+ "postcss.config.mjs": {
36
+ "action": "create"
37
+ }
38
+ }
39
+ },
40
+ "reactjs": {
41
+ "javascript": {
42
+ "package.json": {
43
+ "action": "install"
44
+ },
45
+ "src/index.css": {
46
+ "action": "prepend"
47
+ },
48
+ "vite.config.js": {
49
+ "action": "overwrite"
50
+ }
51
+ },
52
+ "typescript": {
53
+ "package.json": {
54
+ "action": "install"
55
+ },
56
+ "src/index.css": {
57
+ "action": "prepend"
58
+ },
59
+ "vite.config.ts": {
60
+ "action": "overwrite"
61
+ }
62
+ }
63
+ },
64
+ "vuejs": {
65
+ "javascript": {
66
+ "package.json": {
67
+ "action": "install"
68
+ },
69
+ "src/assets/main.css": {
70
+ "action": "prepend"
71
+ },
72
+ "vite.config.ts": {
73
+ "action": "overwrite"
74
+ }
75
+ },
76
+ "typescript": {
77
+ "package.json": {
78
+ "action": "install"
79
+ },
80
+ "src/assets/main.css": {
81
+ "action": "prepend"
82
+ },
83
+ "vite.config.ts": {
84
+ "action": "overwrite"
85
+ }
86
+ }
87
+ },
88
+ "django": {},
89
+ "nuxtjs": {}
90
+ }
91
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: package-installer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sharique
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-10-01 00:00:00.000000000 Z
11
+ date: 2025-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ files:
75
75
  - dist/commands/create.js
76
76
  - dist/commands/deploy.js
77
77
  - dist/commands/doctor.js
78
+ - dist/commands/email.js
78
79
  - dist/commands/env.js
79
80
  - dist/commands/update.js
80
81
  - dist/commands/upgrade-cli.js
@@ -95,6 +96,25 @@ files:
95
96
  - dist/deploy/railway/railway.js
96
97
  - dist/deploy/serverless/serverless.js
97
98
  - dist/deploy/vercel/vercel.js
99
+ - dist/email-templates/bugReport.js
100
+ - dist/email-templates/collectors/bugReport.js
101
+ - dist/email-templates/collectors/common.js
102
+ - dist/email-templates/collectors/docs.js
103
+ - dist/email-templates/collectors/featureRequest.js
104
+ - dist/email-templates/collectors/improvement.js
105
+ - dist/email-templates/collectors/index.js
106
+ - dist/email-templates/collectors/question.js
107
+ - dist/email-templates/collectors/templateRequest.js
108
+ - dist/email-templates/docs.js
109
+ - dist/email-templates/featureRequest.js
110
+ - dist/email-templates/generator.js
111
+ - dist/email-templates/improvement.js
112
+ - dist/email-templates/index.js
113
+ - dist/email-templates/question.js
114
+ - dist/email-templates/styles.js
115
+ - dist/email-templates/templateRequest.js
116
+ - dist/email-templates/testEmail.js
117
+ - dist/email-templates/types.js
98
118
  - dist/index.js
99
119
  - dist/utils/banner.js
100
120
  - dist/utils/cacheManager.js
@@ -116,6 +136,7 @@ files:
116
136
  - dist/utils/utils.js
117
137
  - exe/package-installer
118
138
  - exe/pi
139
+ - features/ai/ai.json
119
140
  - features/ai/claude/expressjs/javascript/controllers/claudeController.js
120
141
  - features/ai/claude/expressjs/javascript/index.js
121
142
  - features/ai/claude/expressjs/javascript/package.json
@@ -231,15 +252,38 @@ files:
231
252
  - features/ai/openai/remixjs/typescript/app/routes/api/openai.ts
232
253
  - features/ai/openai/remixjs/typescript/app/utils/openai.ts
233
254
  - features/ai/openai/remixjs/typescript/package.json
255
+ - features/analytics/analytics.json
256
+ - features/auth/auth.json
234
257
  - features/auth/auth0/angularjs/typescript/package.json
235
258
  - features/auth/auth0/angularjs/typescript/src/app/login-button.ts
236
259
  - features/auth/auth0/angularjs/typescript/src/app/logout-button.ts
237
260
  - features/auth/auth0/angularjs/typescript/src/app/user-profile.ts
238
261
  - features/auth/auth0/angularjs/typescript/src/main.ts
262
+ - features/auth/auth0/django/backend/apiexample/urls.py
263
+ - features/auth/auth0/django/backend/apiexample/validator.py
264
+ - features/auth/auth0/django/backend/apiexample/views.py
265
+ - features/auth/auth0/django/backend/requirements.txt
266
+ - features/auth/auth0/django/web-app/requirements.txt
267
+ - features/auth/auth0/django/web-app/webappexample/settings.py
268
+ - features/auth/auth0/django/web-app/webappexample/templates/index.html
269
+ - features/auth/auth0/django/web-app/webappexample/urls.py
270
+ - features/auth/auth0/django/web-app/webappexample/views.py
239
271
  - features/auth/auth0/expressjs/javascript/index.js
240
272
  - features/auth/auth0/expressjs/javascript/package.json
241
273
  - features/auth/auth0/expressjs/typescript/index.ts
242
274
  - features/auth/auth0/expressjs/typescript/package.json
275
+ - features/auth/auth0/go/backend/go.mod
276
+ - features/auth/auth0/go/backend/main.go
277
+ - features/auth/auth0/go/backend/middleware/jwt.go
278
+ - features/auth/auth0/go/web-app/auth.go
279
+ - features/auth/auth0/go/web-app/callback.go
280
+ - features/auth/auth0/go/web-app/go.mod
281
+ - features/auth/auth0/go/web-app/isAuthenticated.go
282
+ - features/auth/auth0/go/web-app/login.go
283
+ - features/auth/auth0/go/web-app/logout.go
284
+ - features/auth/auth0/go/web-app/main.go
285
+ - features/auth/auth0/go/web-app/router.go
286
+ - features/auth/auth0/go/web-app/user.go
243
287
  - features/auth/auth0/nextjs/javascript/app/page.jsx
244
288
  - features/auth/auth0/nextjs/javascript/lib/auth0.js
245
289
  - features/auth/auth0/nextjs/javascript/middleware.js
@@ -248,6 +292,18 @@ files:
248
292
  - features/auth/auth0/nextjs/typescript/lib/auth0.ts
249
293
  - features/auth/auth0/nextjs/typescript/middleware.ts
250
294
  - features/auth/auth0/nextjs/typescript/package.json
295
+ - features/auth/auth0/ruby-on-rails/backend/Gemfile
296
+ - features/auth/auth0/ruby-on-rails/backend/app/controllers/application_controller.rb
297
+ - features/auth/auth0/ruby-on-rails/backend/app/controllers/concern/secured.rb
298
+ - features/auth/auth0/ruby-on-rails/backend/app/controllers/private_controller.rb
299
+ - features/auth/auth0/ruby-on-rails/backend/app/controllers/public-controller.rb
300
+ - features/auth/auth0/ruby-on-rails/backend/app/lib/auth0_client.rb
301
+ - features/auth/auth0/ruby-on-rails/web-app/Gemfile
302
+ - features/auth/auth0/ruby-on-rails/web-app/auth0_controller.rb
303
+ - features/auth/auth0/ruby-on-rails/web-app/config/auth0.yml
304
+ - features/auth/auth0/ruby-on-rails/web-app/config/initializers/auth0.rb
305
+ - features/auth/auth0/ruby-on-rails/web-app/config/routes.rb
306
+ - features/auth/auth0/ruby-on-rails/web-app/config/secured.rb
251
307
  - features/auth/auth0/vuejs/javascript/package.json
252
308
  - features/auth/auth0/vuejs/javascript/src/components/LoginButton.vue
253
309
  - features/auth/auth0/vuejs/javascript/src/components/LogoutButton.vue
@@ -270,6 +326,9 @@ files:
270
326
  - features/auth/clerk/expressjs/typescript/index.ts
271
327
  - features/auth/clerk/expressjs/typescript/package.json
272
328
  - features/auth/clerk/expressjs/typescript/types/global.d.ts
329
+ - features/auth/clerk/go/clerk_client.go
330
+ - features/auth/clerk/go/go.mod
331
+ - features/auth/clerk/go/main.go
273
332
  - features/auth/clerk/nextjs/javascript/app/layout.js
274
333
  - features/auth/clerk/nextjs/javascript/middleware.js
275
334
  - features/auth/clerk/nextjs/javascript/package.json
@@ -285,6 +344,9 @@ files:
285
344
  - features/auth/clerk/remixjs/typescript/app/root.tsx
286
345
  - features/auth/clerk/remixjs/typescript/app/routes/_index.tsx
287
346
  - features/auth/clerk/remixjs/typescript/package.json
347
+ - features/auth/clerk/ruby-on-rails/Gemfile
348
+ - features/auth/clerk/ruby-on-rails/app.rb
349
+ - features/auth/clerk/ruby-on-rails/config/initializers/clerk.rb
288
350
  - features/auth/clerk/vuejs/javascript/package.json
289
351
  - features/auth/clerk/vuejs/javascript/src/App.vue
290
352
  - features/auth/clerk/vuejs/javascript/src/main.js
@@ -327,6 +389,7 @@ files:
327
389
  - features/aws/aurora/nextjs/javascript/package.json
328
390
  - features/aws/aurora/nextjs/typescript/package.json
329
391
  - features/aws/aurora/remixjs/typescript/package.json
392
+ - features/aws/aws.json
330
393
  - features/aws/backup-gateway/expressjs/javascript/package.json
331
394
  - features/aws/backup-gateway/expressjs/typescript/package.json
332
395
  - features/aws/backup-gateway/nestjs/typescript/package.json
@@ -1078,6 +1141,7 @@ files:
1078
1141
  - features/aws/x-ray/remixjs/typescript/app/routes/api/xray.ts
1079
1142
  - features/aws/x-ray/remixjs/typescript/app/utils/xray.ts
1080
1143
  - features/aws/x-ray/remixjs/typescript/package.json
1144
+ - features/database/database.json
1081
1145
  - features/database/mongodb/mongoose/javascript/expressjs/controllers/userController.js
1082
1146
  - features/database/mongodb/mongoose/javascript/expressjs/index.js
1083
1147
  - features/database/mongodb/mongoose/javascript/expressjs/models/User.js
@@ -1248,6 +1312,7 @@ files:
1248
1312
  - features/database/postgres/typeorm/typescript/remixjs/package.json
1249
1313
  - features/docker/angularjs/Dockerfile
1250
1314
  - features/docker/angularjs/docker-compose.yml
1315
+ - features/docker/docker.json
1251
1316
  - features/docker/expressjs/Dockerfile
1252
1317
  - features/docker/expressjs/docker-compose.yml
1253
1318
  - features/docker/nestjs/Dockerfile
@@ -1265,6 +1330,9 @@ files:
1265
1330
  - features/docker/vuejs/Dockerfile
1266
1331
  - features/docker/vuejs/docker-compose.yml
1267
1332
  - features/features.json
1333
+ - features/gitignore/gitignore.json
1334
+ - features/monitoring/monitoring.json
1335
+ - features/payment/payment.json
1268
1336
  - features/payment/paypal/expressjs/javascript/controllers/paypalControllers.js
1269
1337
  - features/payment/paypal/expressjs/javascript/index.js
1270
1338
  - features/payment/paypal/expressjs/javascript/routes/paypalRoutes.js
@@ -1419,12 +1487,23 @@ files:
1419
1487
  - features/storage/imagekit.io/remixjs/typescript/app/routes/api/imagekit.ts
1420
1488
  - features/storage/imagekit.io/remixjs/typescript/app/utils/imagekit.ts
1421
1489
  - features/storage/imagekit.io/remixjs/typescript/package.json
1422
- - features/testing/jest/angularjs/tests/angularjs.test.js
1423
- - features/testing/jest/expressjs/tests/javascript/expressjs.test.js
1424
- - features/testing/jest/expressjs/tests/typescript/expressjs.test.ts
1425
- - features/testing/jest/go/tests/go.test.js
1426
- - features/testing/jest/nextjs/tests/javascript/nextjs.test.js
1427
- - features/testing/jest/nextjs/tests/typescript/nextjs.test.ts
1490
+ - features/storage/storage.json
1491
+ - features/testing/jest/angularjs/typescript/tests/angularjs.test.ts
1492
+ - features/testing/jest/expressjs/javascript/tests/expressjs.test.js
1493
+ - features/testing/jest/expressjs/typescript/tests/expressjs.test.ts
1494
+ - features/testing/jest/nestjs/typescript/tests/nestjs.test.ts
1495
+ - features/testing/jest/nextjs/javascript/tests/nextjs.test.js
1496
+ - features/testing/jest/nextjs/typescript/tests/nextjs.test.ts
1497
+ - features/testing/jest/nuxtjs/typescript/tests/nuxtjs.test.ts
1498
+ - features/testing/jest/reactjs-expressjs-shadcn/javascript/tests/reactjs.expressjs.shadcn.test.js
1499
+ - features/testing/jest/reactjs-expressjs-shadcn/typescript/tests/reactjs.expressjs.shadcn.test.ts
1500
+ - features/testing/jest/reactjs-nestjs-shadcn/typescript/tests/reactjs.nestjs.shadcn.test.ts
1501
+ - features/testing/jest/reactjs/javascript/tests/reactjs.test.js
1502
+ - features/testing/jest/reactjs/typescript/tests/reactjs.test.ts
1503
+ - features/testing/jest/remixjs/typescript/tests/remixjs.test.ts
1504
+ - features/testing/jest/vuejs/javascript/tests/vuejs.test.ts
1505
+ - features/testing/jest/vuejs/typescript/tests/vuejs.test.ts
1506
+ - features/testing/testing.json
1428
1507
  - features/ui/daisy/angularjs/typescript/package.json
1429
1508
  - features/ui/daisy/angularjs/typescript/src/styles.css
1430
1509
  - features/ui/daisy/nextjs/javascript/app/globals.css
@@ -1445,6 +1524,7 @@ files:
1445
1524
  - features/ui/daisy/vuejs/typescript/package.json
1446
1525
  - features/ui/daisy/vuejs/typescript/src/assets/main.css
1447
1526
  - features/ui/daisy/vuejs/typescript/vite.config.ts
1527
+ - features/ui/ui.json
1448
1528
  - lib/package_installer_cli.rb
1449
1529
  - package.json
1450
1530
  - template.json
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
5
-
6
-
7
- describe('AngularJS app', () => {
8
- test('GET /health returns 200', async () => {
9
- const res = await request(BASE_URL).get('/health');
10
- expect(res.status).toBe(200);
11
- });
12
- });
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
5
-
6
-
7
- describe('ExpressJS app', () => {
8
- test('GET /status returns 200', async () => {
9
- const res = await request(BASE_URL).get('/status');
10
- expect(res.status).toBe(200);
11
- });
12
- });
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
5
-
6
-
7
- describe('ExpressJS app', () => {
8
- test('GET /status returns 200', async () => {
9
- const res = await request(BASE_URL).get('/status');
10
- expect(res.status).toBe(200);
11
- });
12
- });
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:8080';
5
-
6
-
7
- describe('Go backend service', () => {
8
- test('GET /health returns 200', async () => {
9
- const res = await request(BASE_URL).get('/health');
10
- expect(res.status).toBe(200);
11
- });
12
- });
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
5
-
6
-
7
- describe('Next.js app', () => {
8
- test('GET /api/health returns 200', async () => {
9
- const res = await request(BASE_URL).get('/api/health');
10
- expect(res.status).toBe(200);
11
- });
12
- });
@@ -1,12 +0,0 @@
1
- import request from 'supertest';
2
-
3
-
4
- const BASE_URL = process.env.BASE_URL || 'http://localhost:3000';
5
-
6
-
7
- describe('Next.js app', () => {
8
- test('GET /api/health returns 200', async () => {
9
- const res = await request(BASE_URL).get('/api/health');
10
- expect(res.status).toBe(200);
11
- });
12
- });