very-express 0.10.2 → 0.11.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.

Potentially problematic release.


This version of very-express might be problematic. Click here for more details.

Files changed (266) hide show
  1. package/.tmp/_body.txt +1 -0
  2. package/.tmp/_idx.txt +1 -0
  3. package/.tmp/_token.txt +1 -0
  4. package/.tmp/check-a/app/.vex/meta.json +216 -0
  5. package/.tmp/check-a/app/Dockerfile +20 -0
  6. package/.tmp/check-a/app/README.md +39 -0
  7. package/.tmp/check-a/app/public/css/style.css +8 -0
  8. package/.tmp/check-a/app/public/js/deleteaccount.js +80 -0
  9. package/.tmp/check-a/app/public/js/login.js +59 -0
  10. package/.tmp/check-a/app/public/js/logincallback.js +19 -0
  11. package/.tmp/check-a/app/public/js/mytokens.js +11 -0
  12. package/.tmp/check-a/app/public/js/refreshtokens.js +23 -0
  13. package/.tmp/check-a/app/scripts/build.js +39 -0
  14. package/.tmp/check-a/app/scripts/oacg-fix.js +83 -0
  15. package/.tmp/check-a/app/tsconfig.json +30 -0
  16. package/.tmp/check-a/schemas/Project.json +41 -0
  17. package/.tmp/check-a/schemas/Session.json +49 -0
  18. package/.tmp/check-a/schemas/UserAuthProfiles.json +54 -0
  19. package/.tmp/check-a/vex.config.json +26 -0
  20. package/.tmp/check-b/app/.env +41 -0
  21. package/.tmp/check-b/app/.vex/meta.json +219 -0
  22. package/.tmp/check-b/app/Dockerfile +20 -0
  23. package/.tmp/check-b/app/README.md +39 -0
  24. package/.tmp/check-b/app/package.json +51 -0
  25. package/.tmp/check-b/app/public/css/style.css +8 -0
  26. package/.tmp/check-b/app/public/js/deleteaccount.js +80 -0
  27. package/.tmp/check-b/app/public/js/login.js +59 -0
  28. package/.tmp/check-b/app/public/js/logincallback.js +19 -0
  29. package/.tmp/check-b/app/public/js/mytokens.js +11 -0
  30. package/.tmp/check-b/app/public/js/refreshtokens.js +23 -0
  31. package/.tmp/check-b/app/scripts/build.js +39 -0
  32. package/.tmp/check-b/app/scripts/oacg-fix.js +83 -0
  33. package/.tmp/check-b/app/tsconfig.json +30 -0
  34. package/.tmp/check-b/app/tsoa.json +32 -0
  35. package/.tmp/check-b/schemas/Project.json +41 -0
  36. package/.tmp/check-b/vex.config.json +30 -0
  37. package/.tmp/check-c/app/.env +41 -0
  38. package/.tmp/check-c/app/.vex/meta.json +231 -0
  39. package/.tmp/check-c/app/Dockerfile +20 -0
  40. package/.tmp/check-c/app/README.md +39 -0
  41. package/.tmp/check-c/app/package.json +51 -0
  42. package/.tmp/check-c/app/public/css/style.css +8 -0
  43. package/.tmp/check-c/app/public/js/deleteaccount.js +80 -0
  44. package/.tmp/check-c/app/public/js/login.js +59 -0
  45. package/.tmp/check-c/app/public/js/logincallback.js +19 -0
  46. package/.tmp/check-c/app/public/js/mytokens.js +11 -0
  47. package/.tmp/check-c/app/public/js/refreshtokens.js +23 -0
  48. package/.tmp/check-c/app/scripts/build.js +39 -0
  49. package/.tmp/check-c/app/scripts/oacg-fix.js +83 -0
  50. package/.tmp/check-c/app/tsconfig.json +30 -0
  51. package/.tmp/check-c/app/tsoa.json +32 -0
  52. package/.tmp/check-c/schemas/Project.json +41 -0
  53. package/.tmp/check-c/schemas/User.json +81 -0
  54. package/.tmp/check-c/vex.config.json +30 -0
  55. package/.tmp/demo-project/vex.config.json +43 -0
  56. package/.tmp/demo-project2/vex.config.json +43 -0
  57. package/.tmp/demo-schemas/Client.json +65 -0
  58. package/.tmp/demo-schemas/FnbOrder.json +33 -0
  59. package/.tmp/demo-schemas/Job.json +86 -0
  60. package/.tmp/demo-schemas/KernelEvent.json +29 -0
  61. package/.tmp/demo-schemas/Package.json +77 -0
  62. package/.tmp/demo-schemas/Session.json +49 -0
  63. package/.tmp/demo-schemas/Tenant.json +22 -0
  64. package/.tmp/demo-schemas/User.json +81 -0
  65. package/.tmp/demo-schemas/UserAuthProfiles.json +54 -0
  66. package/.tmp/demo-schemas/UserContact.json +76 -0
  67. package/.tmp/demo-schemas/UserRole.json +40 -0
  68. package/.tmp/demo-schemas/UserTenant.json +39 -0
  69. package/.tmp/demo-schemas2/Client.json +65 -0
  70. package/.tmp/demo-schemas2/FnbOrder.json +33 -0
  71. package/.tmp/demo-schemas2/Job.json +86 -0
  72. package/.tmp/demo-schemas2/KernelEvent.json +29 -0
  73. package/.tmp/demo-schemas2/Package.json +77 -0
  74. package/.tmp/demo-schemas2/Session.json +49 -0
  75. package/.tmp/demo-schemas2/Tenant.json +22 -0
  76. package/.tmp/demo-schemas2/User.json +81 -0
  77. package/.tmp/demo-schemas2/UserAuthProfiles.json +54 -0
  78. package/.tmp/demo-schemas2/UserContact.json +76 -0
  79. package/.tmp/demo-schemas2/UserRole.json +40 -0
  80. package/.tmp/demo-schemas2/UserTenant.json +39 -0
  81. package/.tmp/e2e-db.url +1 -0
  82. package/.tmp/nouser/out/.env +41 -0
  83. package/.tmp/nouser/out/.vex/meta.json +323 -0
  84. package/.tmp/nouser/out/Dockerfile +20 -0
  85. package/.tmp/nouser/out/README.md +39 -0
  86. package/.tmp/nouser/out/package.json +51 -0
  87. package/.tmp/nouser/out/public/css/style.css +8 -0
  88. package/.tmp/nouser/out/public/js/deleteaccount.js +80 -0
  89. package/.tmp/nouser/out/public/js/login.js +59 -0
  90. package/.tmp/nouser/out/public/js/logincallback.js +19 -0
  91. package/.tmp/nouser/out/public/js/mytokens.js +11 -0
  92. package/.tmp/nouser/out/public/js/refreshtokens.js +23 -0
  93. package/.tmp/nouser/out/scripts/build.js +39 -0
  94. package/.tmp/nouser/out/scripts/oacg-fix.js +83 -0
  95. package/.tmp/nouser/out/tsconfig.json +30 -0
  96. package/.tmp/nouser/out/tsoa.json +32 -0
  97. package/.tmp/nouser/schemas/Project.json +41 -0
  98. package/.tmp/nouser/schemas/Session.json +49 -0
  99. package/.tmp/nouser/schemas/User.json +81 -0
  100. package/.tmp/nouser/schemas/UserAuthProfiles.json +54 -0
  101. package/.tmp/nouser/schemas/UserTenant.json +39 -0
  102. package/.tmp/nouser/vex.config.json +34 -0
  103. package/.tmp/npm-test-after-fix.log +217 -0
  104. package/.tmp/npm-test-final.log +165 -0
  105. package/.tmp/npm-test-final2.log +163 -0
  106. package/.tmp/npm-test-recheck.log +192 -0
  107. package/.tmp/npm-test-update.log +164 -0
  108. package/.tmp/npm-test.log +166 -0
  109. package/.tmp/output-build-after-fix.log +8 -0
  110. package/.tmp/output-build-baseline.log +8 -0
  111. package/.tmp/output-build-canonical.log +8 -0
  112. package/.tmp/output-build-final2.log +8 -0
  113. package/.tmp/output-build-reapply.log +8 -0
  114. package/.tmp/output-build.log +8 -0
  115. package/.tmp/output.env.bak +34 -0
  116. package/.tmp/probe_body.txt +1 -0
  117. package/.tmp/provision-e2e-db.js +41 -0
  118. package/.tmp/retry-nodestroy.log +18 -0
  119. package/.tmp/retry-recovery-final2.log +8 -0
  120. package/.tmp/retry-recovery-reapply.log +8 -0
  121. package/.tmp/retry-recovery.js +38 -0
  122. package/.tmp/run-e2e-single.js +21 -0
  123. package/.tmp/run-e2e.js +18 -0
  124. package/.tmp/verify-noauth/app/.env +41 -0
  125. package/.tmp/verify-noauth/app/.vex/meta.json +333 -0
  126. package/.tmp/verify-noauth/app/Dockerfile +20 -0
  127. package/.tmp/verify-noauth/app/README.md +39 -0
  128. package/.tmp/verify-noauth/app/package.json +51 -0
  129. package/.tmp/verify-noauth/app/public/css/style.css +8 -0
  130. package/.tmp/verify-noauth/app/public/js/deleteaccount.js +80 -0
  131. package/.tmp/verify-noauth/app/public/js/login.js +59 -0
  132. package/.tmp/verify-noauth/app/public/js/logincallback.js +19 -0
  133. package/.tmp/verify-noauth/app/public/js/mytokens.js +11 -0
  134. package/.tmp/verify-noauth/app/public/js/refreshtokens.js +23 -0
  135. package/.tmp/verify-noauth/app/scripts/build.js +39 -0
  136. package/.tmp/verify-noauth/app/scripts/oacg-fix.js +83 -0
  137. package/.tmp/verify-noauth/app/tsconfig.json +30 -0
  138. package/.tmp/verify-noauth/app/tsoa.json +32 -0
  139. package/.tmp/verify-noauth/schemas/Project.json +41 -0
  140. package/.tmp/verify-noauth/schemas/Session.json +49 -0
  141. package/.tmp/verify-noauth/schemas/User.json +81 -0
  142. package/.tmp/verify-noauth/schemas/UserAuthProfiles.json +54 -0
  143. package/.tmp/verify-noauth/schemas/UserTenant.json +39 -0
  144. package/.tmp/verify-noauth/vex.config.json +33 -0
  145. package/.tmp/verify-noauth-rbac/app/.env +41 -0
  146. package/.tmp/verify-noauth-rbac/app/.vex/meta.json +273 -0
  147. package/.tmp/verify-noauth-rbac/app/Dockerfile +20 -0
  148. package/.tmp/verify-noauth-rbac/app/README.md +39 -0
  149. package/.tmp/verify-noauth-rbac/app/package.json +51 -0
  150. package/.tmp/verify-noauth-rbac/app/public/css/style.css +8 -0
  151. package/.tmp/verify-noauth-rbac/app/public/js/deleteaccount.js +80 -0
  152. package/.tmp/verify-noauth-rbac/app/public/js/login.js +59 -0
  153. package/.tmp/verify-noauth-rbac/app/public/js/logincallback.js +19 -0
  154. package/.tmp/verify-noauth-rbac/app/public/js/mytokens.js +11 -0
  155. package/.tmp/verify-noauth-rbac/app/public/js/refreshtokens.js +23 -0
  156. package/.tmp/verify-noauth-rbac/app/scripts/build.js +39 -0
  157. package/.tmp/verify-noauth-rbac/app/scripts/oacg-fix.js +83 -0
  158. package/.tmp/verify-noauth-rbac/app/tsconfig.json +30 -0
  159. package/.tmp/verify-noauth-rbac/app/tsoa.json +32 -0
  160. package/.tmp/verify-noauth-rbac/schemas/Project.json +41 -0
  161. package/.tmp/verify-noauth-rbac/schemas/User.json +81 -0
  162. package/.tmp/verify-noauth-rbac/schemas/UserRole.json +38 -0
  163. package/.tmp/verify-noauth-rbac/vex.config.json +36 -0
  164. package/.tmp/verify.sh +103 -0
  165. package/.tmp/verify2.sh +103 -0
  166. package/.tmp/vex-gen-after-fix.log +221 -0
  167. package/.tmp/vex-gen-baseline.log +221 -0
  168. package/.tmp/vex-gen-canonical.log +221 -0
  169. package/.tmp/vex-gen-final.log +220 -0
  170. package/.tmp/vex-gen-final2.log +221 -0
  171. package/.tmp/vex-gen-reapply.log +221 -0
  172. package/.tmp/vex-gen.log +220 -0
  173. package/.tmp/vex-run-after-fix.log +3 -0
  174. package/.tmp/vex-run-baseline.log +11 -0
  175. package/.tmp/vex-run-before-fix.log +11 -0
  176. package/.tmp/vex-run-canonical.log +3 -0
  177. package/.tmp/vex-run-final2.log +3 -0
  178. package/.tmp/vex-run.log +3 -0
  179. package/.tmp/vo/app/.env +41 -0
  180. package/.tmp/vo/app/.vex/meta.json +231 -0
  181. package/.tmp/vo/app/Dockerfile +20 -0
  182. package/.tmp/vo/app/README.md +39 -0
  183. package/.tmp/vo/app/package.json +51 -0
  184. package/.tmp/vo/app/public/css/style.css +8 -0
  185. package/.tmp/vo/app/public/js/deleteaccount.js +80 -0
  186. package/.tmp/vo/app/public/js/login.js +59 -0
  187. package/.tmp/vo/app/public/js/logincallback.js +19 -0
  188. package/.tmp/vo/app/public/js/mytokens.js +11 -0
  189. package/.tmp/vo/app/public/js/refreshtokens.js +23 -0
  190. package/.tmp/vo/app/scripts/build.js +39 -0
  191. package/.tmp/vo/app/scripts/oacg-fix.js +83 -0
  192. package/.tmp/vo/app/tsconfig.json +30 -0
  193. package/.tmp/vo/app/tsoa.json +32 -0
  194. package/.tmp/vo/schemas/Project.json +41 -0
  195. package/.tmp/vo/vex.config.json +33 -0
  196. package/.tmp/vo-bad1/app/.env +41 -0
  197. package/.tmp/vo-bad1/app/.vex/meta.json +237 -0
  198. package/.tmp/vo-bad1/app/Dockerfile +20 -0
  199. package/.tmp/vo-bad1/app/README.md +39 -0
  200. package/.tmp/vo-bad1/app/package.json +51 -0
  201. package/.tmp/vo-bad1/app/public/css/style.css +8 -0
  202. package/.tmp/vo-bad1/app/public/js/deleteaccount.js +80 -0
  203. package/.tmp/vo-bad1/app/public/js/login.js +59 -0
  204. package/.tmp/vo-bad1/app/public/js/logincallback.js +19 -0
  205. package/.tmp/vo-bad1/app/public/js/mytokens.js +11 -0
  206. package/.tmp/vo-bad1/app/public/js/refreshtokens.js +23 -0
  207. package/.tmp/vo-bad1/app/scripts/build.js +39 -0
  208. package/.tmp/vo-bad1/app/scripts/oacg-fix.js +83 -0
  209. package/.tmp/vo-bad1/app/tsconfig.json +30 -0
  210. package/.tmp/vo-bad1/app/tsoa.json +32 -0
  211. package/.tmp/vo-bad1/schemas/Project.json +41 -0
  212. package/.tmp/vo-bad1/vex.config.json +33 -0
  213. package/.tmp/vo-bad2/app/.env +41 -0
  214. package/.tmp/vo-bad2/app/.vex/meta.json +237 -0
  215. package/.tmp/vo-bad2/app/Dockerfile +20 -0
  216. package/.tmp/vo-bad2/app/README.md +39 -0
  217. package/.tmp/vo-bad2/app/package.json +51 -0
  218. package/.tmp/vo-bad2/app/public/css/style.css +8 -0
  219. package/.tmp/vo-bad2/app/public/js/deleteaccount.js +80 -0
  220. package/.tmp/vo-bad2/app/public/js/login.js +59 -0
  221. package/.tmp/vo-bad2/app/public/js/logincallback.js +19 -0
  222. package/.tmp/vo-bad2/app/public/js/mytokens.js +11 -0
  223. package/.tmp/vo-bad2/app/public/js/refreshtokens.js +23 -0
  224. package/.tmp/vo-bad2/app/scripts/build.js +39 -0
  225. package/.tmp/vo-bad2/app/scripts/oacg-fix.js +83 -0
  226. package/.tmp/vo-bad2/app/tsconfig.json +30 -0
  227. package/.tmp/vo-bad2/app/tsoa.json +32 -0
  228. package/.tmp/vo-bad2/schemas/Project.json +41 -0
  229. package/.tmp/vo-bad2/vex.config.json +39 -0
  230. package/.tmp/vo-bad3/app/.env +41 -0
  231. package/.tmp/vo-bad3/app/.vex/meta.json +237 -0
  232. package/.tmp/vo-bad3/app/Dockerfile +20 -0
  233. package/.tmp/vo-bad3/app/README.md +39 -0
  234. package/.tmp/vo-bad3/app/package.json +51 -0
  235. package/.tmp/vo-bad3/app/public/css/style.css +8 -0
  236. package/.tmp/vo-bad3/app/public/js/deleteaccount.js +80 -0
  237. package/.tmp/vo-bad3/app/public/js/login.js +59 -0
  238. package/.tmp/vo-bad3/app/public/js/logincallback.js +19 -0
  239. package/.tmp/vo-bad3/app/public/js/mytokens.js +11 -0
  240. package/.tmp/vo-bad3/app/public/js/refreshtokens.js +23 -0
  241. package/.tmp/vo-bad3/app/scripts/build.js +39 -0
  242. package/.tmp/vo-bad3/app/scripts/oacg-fix.js +83 -0
  243. package/.tmp/vo-bad3/app/tsconfig.json +30 -0
  244. package/.tmp/vo-bad3/app/tsoa.json +32 -0
  245. package/.tmp/vo-bad3/schemas/Project.json +41 -0
  246. package/.tmp/vo-bad3/vex.config.json +33 -0
  247. package/dist/index.js +1156 -698
  248. package/dist/templates/_middlewares/UserContext.ts +1 -1
  249. package/dist/templates/_routes/FirebaseAuthUI.gen.ts +2 -2
  250. package/dist/templates/_routes/{LoginUI.ts → StarterUI.ts} +122 -8
  251. package/dist/templates/_utils/hash.ts +9 -4
  252. package/dist/templates/tenantJsonSchema/Tenant.json +22 -0
  253. package/docs/appGenerated/auth.md +50 -0
  254. package/docs/architecture/databaseTargets.md +23 -2
  255. package/docs/architecture/templates.md +7 -0
  256. package/docs/features/accountDeletion.md +5 -4
  257. package/docs/features/auditFields.md +2 -2
  258. package/docs/features/tenantIsolation.md +108 -15
  259. package/docs/releaseNote/v0-10-3.md +61 -0
  260. package/docs/releaseNote/v0-10-4.md +102 -0
  261. package/docs/releaseNote/v0-11-0.md +82 -0
  262. package/docs/vexJsonSchema.md +34 -1
  263. package/package.json +1 -1
  264. package/vex.config.json +6 -1
  265. package/dist/templates/_services/VexDbConnector.ts +0 -188
  266. package/dist/templates/_tenant/TenantScopeContext.ts +0 -56
@@ -0,0 +1,217 @@
1
+
2
+ > very-express@0.10.6 test
3
+ > npm run compile && vitest run
4
+
5
+
6
+ > very-express@0.10.6 compile
7
+ > node ./scripts/build.js && node ./scripts/copyTsTemplates.js
8
+
9
+ The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
10
+
11
+ RUN v2.1.9 /home/justin/Documents/VeryExpress
12
+
13
+ ↓ test/e2e/tenantSingle.test.ts (11 tests | 11 skipped)
14
+ ↓ test/e2e/contract.test.ts (16 tests | 16 skipped)
15
+ ↓ test/e2e/tenant.test.ts (11 tests | 11 skipped)
16
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders one button per configured provider, with the label substituted
17
+ [vex] auth.firebase is enabled but its public browser config is not usable:
18
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
19
+ If a value is already in .env, restart the server — .env is read once at startup.
20
+
21
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders no button for a provider name the wiring cannot start, and says so
22
+ [vex] auth.firebase is enabled but its public browser config is not usable:
23
+ - TEST_FIREBASE_PROVIDERS names "twitter", which this login page cannot start (known: google, github)
24
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
25
+ If a value is already in .env, restart the server — .env is read once at startup.
26
+
27
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > inlines the carrier and the glue, and tags no SDK script of its own
28
+ [vex] auth.firebase is enabled but its public browser config is not usable:
29
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
30
+ If a value is already in .env, restart the server — .env is read once at startup.
31
+
32
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > carries the SDK base URL and the env-derived public config to the glue
33
+ [vex] auth.firebase is enabled but its public browser config is not usable:
34
+ - not set in .env or process.env: TEST_FIREBASE_AUTH_DOMAIN
35
+ If a value is already in .env, restart the server — .env is read once at startup.
36
+
37
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > reports a missing variable, naming it in the message the browser shows
38
+ [vex] auth.firebase is enabled but its public browser config is not usable:
39
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_AUTH_DOMAIN
40
+ If a value is already in .env, restart the server — .env is read once at startup.
41
+
42
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > allows gstatic, the token endpoints and the auth window, and keeps the page's own nonce
43
+ [vex] auth.firebase is enabled but its public browser config is not usable:
44
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT
45
+ If a value is already in .env, restart the server — .env is read once at startup.
46
+
47
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > keeps window.opener alive for the popup, overriding helmet's default
48
+ [vex] auth.firebase is enabled but its public browser config is not usable:
49
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
50
+ If a value is already in .env, restart the server — .env is read once at startup.
51
+
52
+ ✓ test/unit/starterUI.test.ts (15 tests) 7ms
53
+ ✓ test/unit/isolation.test.ts (16 tests) 8ms
54
+ stdout | test/unit/tenantSingle.test.ts > Tenant endpoints across modes > emits create in single and option, and nothing in preSelect
55
+ [PROCESSING] Tenant Controller
56
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-single-wJqhpZ/controllers/TenantController.gen.ts"
57
+ [PROCESSING] Tenant Controller
58
+ [WRITING] Tenant Types : "/tmp/vex-tenant-ctrl-option-mPaG3J/types/TenantList.gen.ts"
59
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-option-mPaG3J/controllers/TenantController.gen.ts"
60
+
61
+ ✓ test/unit/tenantSingle.test.ts (16 tests) 29ms
62
+ ✓ test/unit/deleteAccountPage.test.ts (6 tests) 12ms
63
+ ↓ test/e2e/compile.test.ts (13 tests | 13 skipped)
64
+ ✓ test/unit/firebaseAuth.test.ts (17 tests) 5ms
65
+ ↓ test/e2e/transaction.test.ts (4 tests | 4 skipped)
66
+ ✓ test/unit/softDelete.test.ts (12 tests) 5ms
67
+ ↓ test/e2e/tenantHeader.test.ts (5 tests | 5 skipped)
68
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > takes no token and names only header errors
69
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-Vbif4Y/TenantScopeContext.gen.ts"
70
+ [PROCESSING] Tenant Scope Middleware
71
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-Vbif4Y/TenantScope.gen.ts"
72
+
73
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > keeps the shared UUID check
74
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-Bglm9h/TenantScopeContext.gen.ts"
75
+ [PROCESSING] Tenant Scope Middleware
76
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-Bglm9h/TenantScope.gen.ts"
77
+
78
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — option emits claim plus guest header > takes both sources and names every error
79
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-xLORPQ/TenantScopeContext.gen.ts"
80
+ [PROCESSING] Tenant Scope Middleware
81
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-xLORPQ/TenantScope.gen.ts"
82
+
83
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — single emits the claim path only > takes no header argument
84
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-1O1HJF/TenantScopeContext.gen.ts"
85
+ [PROCESSING] Tenant Scope Middleware
86
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-1O1HJF/TenantScope.gen.ts"
87
+
88
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > has no header constant, no header read, no requested tenant
89
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-xUXkGQ/TenantScopeContext.gen.ts"
90
+ [PROCESSING] Tenant Scope Middleware
91
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-xUXkGQ/TenantScope.gen.ts"
92
+
93
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > keeps the claim errors only
94
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-RoOxH7/TenantScopeContext.gen.ts"
95
+ [PROCESSING] Tenant Scope Middleware
96
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-RoOxH7/TenantScope.gen.ts"
97
+
98
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > option reads the header as the guest fallback
99
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-GQYYLz/TenantScopeContext.gen.ts"
100
+ [PROCESSING] Tenant Scope Middleware
101
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-GQYYLz/TenantScope.gen.ts"
102
+
103
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > preSelect requires the header and reads no token
104
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-yYVUO7/TenantScopeContext.gen.ts"
105
+ [PROCESSING] Tenant Scope Middleware
106
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-yYVUO7/TenantScope.gen.ts"
107
+
108
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > applies tenant.scope to every mode
109
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-jC8siT/TenantScopeContext.gen.ts"
110
+ [PROCESSING] Tenant Scope Middleware
111
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-jC8siT/TenantScope.gen.ts"
112
+
113
+ ✓ test/unit/tenantScopeContext.test.ts (9 tests) 7ms
114
+ ✓ test/unit/userContext.test.ts (11 tests) 8ms
115
+ ❯ test/unit/schemaName.test.ts (16 tests | 1 failed) 8ms
116
+ × schemaNameTemplate > keeps every member aligned on one indent level 4ms
117
+ → expected [ …(3) ] to deeply equal [ ' "fnb" = "fnb",', …(1) ]
118
+ ✓ test/unit/auditFields.test.ts (5 tests) 3ms
119
+ stdout | test/unit/configOptions.test.ts > isShowSoftDeleted > is true only when explicitly true
120
+ [WARN] app.showSoftDeleted is ON — soft-deleted rows are visible to every query, are writable again through the ordinary CRUD path, and the account-state guard in Authentication.middleware will keep rejecting tombstones. Unset app.showSoftDeleted to restore the default (hidden).
121
+
122
+ ✓ test/unit/configOptions.test.ts (16 tests) 4ms
123
+ ✓ test/unit/accountStateGuard.test.ts (5 tests) 3ms
124
+ ✓ test/unit/verifyOnly.test.ts (9 tests) 4ms
125
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > moves the old flat fields under restApi and drops them
126
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
127
+
128
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > respects an already-migrated restApi block
129
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
130
+
131
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > maps apiSkipRoute to an empty methods list
132
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
133
+
134
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > is idempotent — a second run changes nothing
135
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
136
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
137
+
138
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > leaves a schema with no x-documentConfig untouched
139
+ [INFO] Migration v0.6.14-alpha: skip Legacy.json (no old fields)
140
+
141
+ ✓ test/unit/migration.test.ts (5 tests) 4ms
142
+ ✓ test/unit/authDocuments.test.ts (5 tests) 2ms
143
+ ❯ test/golden.test.ts (18 tests | 1 failed) 5445ms
144
+ ✓ golden output > generates the expected tree for "mongo-auth-rbac" 330ms
145
+ ✓ golden output > generates the expected tree for "sql-auth-delete-account-off" 326ms
146
+ ✓ golden output > generates the expected tree for "sql-auth-firebase" 323ms
147
+ ✓ golden output > generates the expected tree for "sql-auth-firebase-only" 333ms
148
+ ✓ golden output > generates the expected tree for "sql-auth-oauth-rbac" 330ms
149
+ ✓ golden output > generates the expected tree for "sql-binary" 326ms
150
+ ✓ golden output > generates the expected tree for "sql-delete-tables" 323ms
151
+ ✓ golden output > generates the expected tree for "sql-noauth" 336ms
152
+ ✓ golden output > generates the expected tree for "sql-norbac" 311ms
153
+ ✓ golden output > generates the expected tree for "sql-noswagger" 313ms
154
+ × golden output > generates the expected tree for "sql-schema-specified" 301ms
155
+ → first difference at file ===== out/src/system/_models/InvoiceModel.gen.ts =====, line 1087
156
+ golden: ""
157
+ actual: "import { vexDbSchemas } from \"./../_types/SchemaName.gen\";"
158
+ golden lines: 2906, actual lines: 2916
159
+
160
+ actual dump: /tmp/vex-golden-uu7XT7/actual.golden.txt
161
+ inspect: diff /tmp/vex-golden-uu7XT7/actual.golden.txt test/golden/sql-schema-specified.txt
162
+ regenerate: npm run test:update
163
+ ✓ golden output > generates the expected tree for "sql-tenant" 325ms
164
+ ✓ golden output > generates the expected tree for "sql-tenant-delete-account" 325ms
165
+ ✓ golden output > generates the expected tree for "sql-tenant-header" 307ms
166
+ ✓ golden output > generates the expected tree for "sql-tenant-single" 331ms
167
+ ✓ golden output > generates the expected tree for "sql-verify-only" 300ms
168
+ ✓ test/unit/template.test.ts (6 tests) 2ms
169
+
170
+ ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
171
+
172
+ FAIL test/golden.test.ts > golden output > generates the expected tree for "sql-schema-specified"
173
+ AssertionError: first difference at file ===== out/src/system/_models/InvoiceModel.gen.ts =====, line 1087
174
+ golden: ""
175
+ actual: "import { vexDbSchemas } from \"./../_types/SchemaName.gen\";"
176
+ golden lines: 2906, actual lines: 2916
177
+
178
+ actual dump: /tmp/vex-golden-uu7XT7/actual.golden.txt
179
+ inspect: diff /tmp/vex-golden-uu7XT7/actual.golden.txt test/golden/sql-schema-specified.txt
180
+ regenerate: npm run test:update
181
+ ❯ test/golden.test.ts:73:24
182
+ 71| fs.writeFileSync(artifact, actual, "utf8");
183
+ 72|
184
+ 73| expect.fail(
185
+ | ^
186
+ 74| `${describeFirstDiff(actual, expected)}\n\n` +
187
+ 75| ` actual dump: ${artifact}\n` +
188
+
189
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
190
+
191
+ FAIL test/unit/schemaName.test.ts > schemaNameTemplate > keeps every member aligned on one indent level
192
+ AssertionError: expected [ …(3) ] to deeply equal [ ' "fnb" = "fnb",', …(1) ]
193
+
194
+ - Expected
195
+ + Received
196
+
197
+ Array [
198
+ + "export type SchemaName = \"fnb\" | \"kernel\";",
199
+ " \"fnb\" = \"fnb\",",
200
+ " \"kernel\" = \"kernel\",",
201
+ ]
202
+
203
+ ❯ test/unit/schemaName.test.ts:66:25
204
+ 64| const members = source.split("\n").filter(line => line.include…
205
+ 65|
206
+ 66| expect(members).toEqual([
207
+ | ^
208
+ 67| ' "fnb" = "fnb",',
209
+ 68| ' "kernel" = "kernel",',
210
+
211
+ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
212
+
213
+ Test Files 2 failed | 15 passed | 6 skipped (23)
214
+ Tests 2 failed | 185 passed | 60 skipped (247)
215
+ Start at 08:35:58
216
+ Duration 8.54s (transform 232ms, setup 0ms, collect 424ms, tests 5.56s, environment 3ms, prepare 760ms)
217
+
@@ -0,0 +1,165 @@
1
+
2
+ > very-express@0.10.6 test
3
+ > npm run compile && vitest run
4
+
5
+
6
+ > very-express@0.10.6 compile
7
+ > node ./scripts/build.js && node ./scripts/copyTsTemplates.js
8
+
9
+ The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
10
+
11
+ RUN v2.1.9 /home/justin/Documents/VeryExpress
12
+
13
+ ↓ test/e2e/tenantSingle.test.ts (11 tests | 11 skipped)
14
+ ↓ test/e2e/contract.test.ts (16 tests | 16 skipped)
15
+ ↓ test/e2e/tenant.test.ts (11 tests | 11 skipped)
16
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders one button per configured provider, with the label substituted
17
+ [vex] auth.firebase is enabled but its public browser config is not usable:
18
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
19
+ If a value is already in .env, restart the server — .env is read once at startup.
20
+
21
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders no button for a provider name the wiring cannot start, and says so
22
+ [vex] auth.firebase is enabled but its public browser config is not usable:
23
+ - TEST_FIREBASE_PROVIDERS names "twitter", which this login page cannot start (known: google, github)
24
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
25
+ If a value is already in .env, restart the server — .env is read once at startup.
26
+
27
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > inlines the carrier and the glue, and tags no SDK script of its own
28
+ [vex] auth.firebase is enabled but its public browser config is not usable:
29
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
30
+ If a value is already in .env, restart the server — .env is read once at startup.
31
+
32
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > carries the SDK base URL and the env-derived public config to the glue
33
+ [vex] auth.firebase is enabled but its public browser config is not usable:
34
+ - not set in .env or process.env: TEST_FIREBASE_AUTH_DOMAIN
35
+ If a value is already in .env, restart the server — .env is read once at startup.
36
+
37
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > reports a missing variable, naming it in the message the browser shows
38
+ [vex] auth.firebase is enabled but its public browser config is not usable:
39
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_AUTH_DOMAIN
40
+ If a value is already in .env, restart the server — .env is read once at startup.
41
+
42
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > allows gstatic, the token endpoints and the auth window, and keeps the page's own nonce
43
+ [vex] auth.firebase is enabled but its public browser config is not usable:
44
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT
45
+ If a value is already in .env, restart the server — .env is read once at startup.
46
+
47
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > keeps window.opener alive for the popup, overriding helmet's default
48
+ [vex] auth.firebase is enabled but its public browser config is not usable:
49
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
50
+ If a value is already in .env, restart the server — .env is read once at startup.
51
+
52
+ ✓ test/unit/starterUI.test.ts (15 tests) 6ms
53
+ ✓ test/unit/isolation.test.ts (16 tests) 9ms
54
+ ✓ test/unit/tenantSingle.test.ts (16 tests) 28ms
55
+ stdout | test/unit/tenantSingle.test.ts > Tenant endpoints across modes > emits create in single and option, and nothing in preSelect
56
+ [PROCESSING] Tenant Controller
57
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-single-8gUYEq/controllers/TenantController.gen.ts"
58
+ [PROCESSING] Tenant Controller
59
+ [WRITING] Tenant Types : "/tmp/vex-tenant-ctrl-option-A8rRUQ/types/TenantList.gen.ts"
60
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-option-A8rRUQ/controllers/TenantController.gen.ts"
61
+
62
+ ✓ test/unit/deleteAccountPage.test.ts (6 tests) 12ms
63
+ ↓ test/e2e/compile.test.ts (13 tests | 13 skipped)
64
+ ✓ test/unit/firebaseAuth.test.ts (17 tests) 5ms
65
+ ↓ test/e2e/transaction.test.ts (4 tests | 4 skipped)
66
+ ✓ test/unit/softDelete.test.ts (12 tests) 7ms
67
+ ↓ test/e2e/tenantHeader.test.ts (5 tests | 5 skipped)
68
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > takes no token and names only header errors
69
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-v7rgUC/TenantScopeContext.gen.ts"
70
+ [PROCESSING] Tenant Scope Middleware
71
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-v7rgUC/TenantScope.gen.ts"
72
+
73
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > keeps the shared UUID check
74
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-xXuIOq/TenantScopeContext.gen.ts"
75
+ [PROCESSING] Tenant Scope Middleware
76
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-xXuIOq/TenantScope.gen.ts"
77
+
78
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — option emits claim plus guest header > takes both sources and names every error
79
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-bnxl0Q/TenantScopeContext.gen.ts"
80
+ [PROCESSING] Tenant Scope Middleware
81
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-bnxl0Q/TenantScope.gen.ts"
82
+
83
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — single emits the claim path only > takes no header argument
84
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-nDwHKy/TenantScopeContext.gen.ts"
85
+ [PROCESSING] Tenant Scope Middleware
86
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-nDwHKy/TenantScope.gen.ts"
87
+
88
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > has no header constant, no header read, no requested tenant
89
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-BcYSJe/TenantScopeContext.gen.ts"
90
+ [PROCESSING] Tenant Scope Middleware
91
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-BcYSJe/TenantScope.gen.ts"
92
+
93
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > keeps the claim errors only
94
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-0RSsTm/TenantScopeContext.gen.ts"
95
+ [PROCESSING] Tenant Scope Middleware
96
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-0RSsTm/TenantScope.gen.ts"
97
+
98
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > option reads the header as the guest fallback
99
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-6Kxsxg/TenantScopeContext.gen.ts"
100
+ [PROCESSING] Tenant Scope Middleware
101
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-6Kxsxg/TenantScope.gen.ts"
102
+
103
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > preSelect requires the header and reads no token
104
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-yCl8Xm/TenantScopeContext.gen.ts"
105
+ [PROCESSING] Tenant Scope Middleware
106
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-yCl8Xm/TenantScope.gen.ts"
107
+
108
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > applies tenant.scope to every mode
109
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-WL95X1/TenantScopeContext.gen.ts"
110
+ [PROCESSING] Tenant Scope Middleware
111
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-WL95X1/TenantScope.gen.ts"
112
+
113
+ ✓ test/unit/tenantScopeContext.test.ts (9 tests) 7ms
114
+ ✓ test/unit/userContext.test.ts (11 tests) 10ms
115
+ ✓ test/unit/schemaName.test.ts (16 tests) 4ms
116
+ ✓ test/unit/auditFields.test.ts (5 tests) 3ms
117
+ ✓ test/unit/configOptions.test.ts (16 tests) 4ms
118
+ stdout | test/unit/configOptions.test.ts > isShowSoftDeleted > is true only when explicitly true
119
+ [WARN] app.showSoftDeleted is ON — soft-deleted rows are visible to every query, are writable again through the ordinary CRUD path, and the account-state guard in Authentication.middleware will keep rejecting tombstones. Unset app.showSoftDeleted to restore the default (hidden).
120
+
121
+ ✓ test/unit/accountStateGuard.test.ts (5 tests) 3ms
122
+ ✓ test/unit/verifyOnly.test.ts (9 tests) 4ms
123
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > moves the old flat fields under restApi and drops them
124
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
125
+
126
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > respects an already-migrated restApi block
127
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
128
+
129
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > maps apiSkipRoute to an empty methods list
130
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
131
+
132
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > is idempotent — a second run changes nothing
133
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
134
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
135
+
136
+ ✓ test/unit/migration.test.ts (5 tests) 4ms
137
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > leaves a schema with no x-documentConfig untouched
138
+ [INFO] Migration v0.6.14-alpha: skip Legacy.json (no old fields)
139
+
140
+ ✓ test/unit/authDocuments.test.ts (5 tests) 2ms
141
+ ✓ test/golden.test.ts (18 tests) 5511ms
142
+ ✓ golden output > generates the expected tree for "mongo-auth-rbac" 329ms
143
+ ✓ golden output > generates the expected tree for "sql-auth-delete-account-off" 324ms
144
+ ✓ golden output > generates the expected tree for "sql-auth-firebase" 332ms
145
+ ✓ golden output > generates the expected tree for "sql-auth-firebase-only" 334ms
146
+ ✓ golden output > generates the expected tree for "sql-auth-oauth-rbac" 327ms
147
+ ✓ golden output > generates the expected tree for "sql-binary" 322ms
148
+ ✓ golden output > generates the expected tree for "sql-delete-tables" 340ms
149
+ ✓ golden output > generates the expected tree for "sql-noauth" 319ms
150
+ ✓ golden output > generates the expected tree for "sql-norbac" 321ms
151
+ ✓ golden output > generates the expected tree for "sql-noswagger" 323ms
152
+ ✓ golden output > generates the expected tree for "sql-schema-specified" 308ms
153
+ ✓ golden output > generates the expected tree for "sql-tenant" 331ms
154
+ ✓ golden output > generates the expected tree for "sql-tenant-delete-account" 333ms
155
+ ✓ golden output > generates the expected tree for "sql-tenant-header" 309ms
156
+ ✓ golden output > generates the expected tree for "sql-tenant-header-nouser" 302ms
157
+ ✓ golden output > generates the expected tree for "sql-tenant-single" 337ms
158
+ ✓ golden output > generates the expected tree for "sql-verify-only" 313ms
159
+ ✓ test/unit/template.test.ts (6 tests) 2ms
160
+
161
+ Test Files 17 passed | 6 skipped (23)
162
+ Tests 187 passed | 60 skipped (247)
163
+ Start at 08:36:27
164
+ Duration 8.63s (transform 226ms, setup 0ms, collect 413ms, tests 5.62s, environment 3ms, prepare 770ms)
165
+
@@ -0,0 +1,163 @@
1
+
2
+ > very-express@0.10.6 test
3
+ > npm run compile && vitest run
4
+
5
+
6
+ > very-express@0.10.6 compile
7
+ > node ./scripts/build.js && node ./scripts/copyTsTemplates.js
8
+
9
+ The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
10
+
11
+ RUN v2.1.9 /home/justin/Documents/VeryExpress
12
+
13
+ ↓ test/e2e/tenantSingle.test.ts (11 tests | 11 skipped)
14
+ ↓ test/e2e/contract.test.ts (16 tests | 16 skipped)
15
+ ↓ test/e2e/tenant.test.ts (11 tests | 11 skipped)
16
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders one button per configured provider, with the label substituted
17
+ [vex] auth.firebase is enabled but its public browser config is not usable:
18
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
19
+ If a value is already in .env, restart the server — .env is read once at startup.
20
+
21
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > renders no button for a provider name the wiring cannot start, and says so
22
+ [vex] auth.firebase is enabled but its public browser config is not usable:
23
+ - TEST_FIREBASE_PROVIDERS names "twitter", which this login page cannot start (known: google, github)
24
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
25
+ If a value is already in .env, restart the server — .env is read once at startup.
26
+
27
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > inlines the carrier and the glue, and tags no SDK script of its own
28
+ [vex] auth.firebase is enabled but its public browser config is not usable:
29
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
30
+ If a value is already in .env, restart the server — .env is read once at startup.
31
+
32
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > carries the SDK base URL and the env-derived public config to the glue
33
+ [vex] auth.firebase is enabled but its public browser config is not usable:
34
+ - not set in .env or process.env: TEST_FIREBASE_AUTH_DOMAIN
35
+ If a value is already in .env, restart the server — .env is read once at startup.
36
+
37
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > reports a missing variable, naming it in the message the browser shows
38
+ [vex] auth.firebase is enabled but its public browser config is not usable:
39
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_AUTH_DOMAIN
40
+ If a value is already in .env, restart the server — .env is read once at startup.
41
+
42
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > allows gstatic, the token endpoints and the auth window, and keeps the page's own nonce
43
+ [vex] auth.firebase is enabled but its public browser config is not usable:
44
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT
45
+ If a value is already in .env, restart the server — .env is read once at startup.
46
+
47
+ stderr | test/unit/starterUI.test.ts > StarterUI — login page, Firebase wiring > keeps window.opener alive for the popup, overriding helmet's default
48
+ [vex] auth.firebase is enabled but its public browser config is not usable:
49
+ - not set in .env or process.env: TEST_FIREBASE_API_KEY, TEST_FIREBASE_PROJECT, TEST_FIREBASE_AUTH_DOMAIN
50
+ If a value is already in .env, restart the server — .env is read once at startup.
51
+
52
+ ✓ test/unit/starterUI.test.ts (15 tests) 6ms
53
+ ✓ test/unit/isolation.test.ts (16 tests) 8ms
54
+ stdout | test/unit/tenantSingle.test.ts > Tenant endpoints across modes > emits create in single and option, and nothing in preSelect
55
+ [PROCESSING] Tenant Controller
56
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-single-CzXdTn/controllers/TenantController.gen.ts"
57
+ [PROCESSING] Tenant Controller
58
+ [WRITING] Tenant Types : "/tmp/vex-tenant-ctrl-option-MzIhZd/types/TenantList.gen.ts"
59
+ [WRITING] Tenant Controller : "/tmp/vex-tenant-ctrl-option-MzIhZd/controllers/TenantController.gen.ts"
60
+
61
+ ✓ test/unit/tenantSingle.test.ts (16 tests) 29ms
62
+ ✓ test/unit/deleteAccountPage.test.ts (6 tests) 12ms
63
+ ↓ test/e2e/compile.test.ts (13 tests | 13 skipped)
64
+ ✓ test/unit/firebaseAuth.test.ts (17 tests) 5ms
65
+ ↓ test/e2e/transaction.test.ts (4 tests | 4 skipped)
66
+ ✓ test/unit/softDelete.test.ts (12 tests) 8ms
67
+ ↓ test/e2e/tenantHeader.test.ts (5 tests | 5 skipped)
68
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > takes no token and names only header errors
69
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-erTclJ/TenantScopeContext.gen.ts"
70
+ [PROCESSING] Tenant Scope Middleware
71
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-erTclJ/TenantScope.gen.ts"
72
+
73
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — preSelect emits the header path only > keeps the shared UUID check
74
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-tM82dN/TenantScopeContext.gen.ts"
75
+ [PROCESSING] Tenant Scope Middleware
76
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-tM82dN/TenantScope.gen.ts"
77
+
78
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — option emits claim plus guest header > takes both sources and names every error
79
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-HX7TCS/TenantScopeContext.gen.ts"
80
+ [PROCESSING] Tenant Scope Middleware
81
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-HX7TCS/TenantScope.gen.ts"
82
+
83
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScopeContext — single emits the claim path only > takes no header argument
84
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-MW1iaf/TenantScopeContext.gen.ts"
85
+ [PROCESSING] Tenant Scope Middleware
86
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-MW1iaf/TenantScope.gen.ts"
87
+
88
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > has no header constant, no header read, no requested tenant
89
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-NDJqlu/TenantScopeContext.gen.ts"
90
+ [PROCESSING] Tenant Scope Middleware
91
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-NDJqlu/TenantScope.gen.ts"
92
+
93
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — single never reads the tenant header > keeps the claim errors only
94
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-X31UYZ/TenantScopeContext.gen.ts"
95
+ [PROCESSING] Tenant Scope Middleware
96
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-X31UYZ/TenantScope.gen.ts"
97
+
98
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > option reads the header as the guest fallback
99
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-option-eZMy3I/TenantScopeContext.gen.ts"
100
+ [PROCESSING] Tenant Scope Middleware
101
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-option-eZMy3I/TenantScope.gen.ts"
102
+
103
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > preSelect requires the header and reads no token
104
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-preSelect-ZcHCUJ/TenantScopeContext.gen.ts"
105
+ [PROCESSING] Tenant Scope Middleware
106
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-preSelect-ZcHCUJ/TenantScope.gen.ts"
107
+
108
+ stdout | test/unit/tenantScopeContext.test.ts > TenantScope — option and preSelect keep their header path > applies tenant.scope to every mode
109
+ [WRITING] Tenant Scope Context : "/tmp/vex-tenant-single-pnRarj/TenantScopeContext.gen.ts"
110
+ [PROCESSING] Tenant Scope Middleware
111
+ [WRITING] Tenant Scope Middleware : "/tmp/vex-tenant-single-pnRarj/TenantScope.gen.ts"
112
+
113
+ ✓ test/unit/tenantScopeContext.test.ts (9 tests) 7ms
114
+ ✓ test/unit/userContext.test.ts (11 tests) 9ms
115
+ ✓ test/unit/schemaName.test.ts (16 tests) 4ms
116
+ ✓ test/unit/auditFields.test.ts (5 tests) 3ms
117
+ stdout | test/unit/configOptions.test.ts > isShowSoftDeleted > is true only when explicitly true
118
+ [WARN] app.showSoftDeleted is ON — soft-deleted rows are visible to every query, are writable again through the ordinary CRUD path, and the account-state guard in Authentication.middleware will keep rejecting tombstones. Unset app.showSoftDeleted to restore the default (hidden).
119
+
120
+ ✓ test/unit/configOptions.test.ts (16 tests) 4ms
121
+ ✓ test/unit/accountStateGuard.test.ts (5 tests) 3ms
122
+ ✓ test/unit/verifyOnly.test.ts (9 tests) 4ms
123
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > moves the old flat fields under restApi and drops them
124
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
125
+
126
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > respects an already-migrated restApi block
127
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
128
+
129
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > maps apiSkipRoute to an empty methods list
130
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
131
+
132
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > is idempotent — a second run changes nothing
133
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
134
+ [WRITING] Migration v0.6.14-alpha: migrated Legacy.json
135
+
136
+ ✓ test/unit/migration.test.ts (5 tests) 4ms
137
+ stdout | test/unit/migration.test.ts > migration v0.6.14-alpha: migrateSchemaFile > leaves a schema with no x-documentConfig untouched
138
+ [INFO] Migration v0.6.14-alpha: skip Legacy.json (no old fields)
139
+
140
+ ✓ test/unit/authDocuments.test.ts (5 tests) 2ms
141
+ ✓ test/golden.test.ts (18 tests) 5398ms
142
+ ✓ golden output > generates the expected tree for "mongo-auth-rbac" 338ms
143
+ ✓ golden output > generates the expected tree for "sql-auth-delete-account-off" 320ms
144
+ ✓ golden output > generates the expected tree for "sql-auth-firebase" 319ms
145
+ ✓ golden output > generates the expected tree for "sql-auth-firebase-only" 324ms
146
+ ✓ golden output > generates the expected tree for "sql-auth-oauth-rbac" 320ms
147
+ ✓ golden output > generates the expected tree for "sql-binary" 321ms
148
+ ✓ golden output > generates the expected tree for "sql-delete-tables" 327ms
149
+ ✓ golden output > generates the expected tree for "sql-noauth" 311ms
150
+ ✓ golden output > generates the expected tree for "sql-norbac" 312ms
151
+ ✓ golden output > generates the expected tree for "sql-noswagger" 317ms
152
+ ✓ golden output > generates the expected tree for "sql-schema-specified" 302ms
153
+ ✓ golden output > generates the expected tree for "sql-tenant" 325ms
154
+ ✓ golden output > generates the expected tree for "sql-tenant-delete-account" 328ms
155
+ ✓ golden output > generates the expected tree for "sql-tenant-header" 318ms
156
+ ✓ golden output > generates the expected tree for "sql-tenant-single" 323ms
157
+ ✓ test/unit/template.test.ts (6 tests) 2ms
158
+
159
+ Test Files 17 passed | 6 skipped (23)
160
+ Tests 187 passed | 60 skipped (247)
161
+ Start at 08:42:28
162
+ Duration 8.43s (transform 221ms, setup 0ms, collect 403ms, tests 5.51s, environment 3ms, prepare 747ms)
163
+