@c15t/backend 0.0.1-rc.19 → 0.0.1-rc.20

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.
@@ -1,16 +1,16 @@
1
1
 
2
2
  
3
- > @c15t/backend@0.0.1-rc.19 build /Users/christopherburns/glados/k/c15t/packages/backend
3
+ > @c15t/backend@0.0.1-rc.20 build /Users/christopherburns/glados/k/c15t/packages/backend
4
4
  > rslib build
5
5
 
6
-   Rslib v0.5.3
6
+   Rslib v0.6.2
7
7
  
8
- ready  built in 0.34 s (esm)
9
- ready  built in 0.34 s (cjs)
10
- start  Generating DTS... (esm)
11
- start  Generating DTS... (cjs)
12
- ready  DTS generated in 2.73 s (esm)
13
- ready  DTS generated in 2.77 s (cjs)
8
+ ready  built in 0.36 s (esm)
9
+ ready  built in 0.35 s (cjs)
10
+ start  generating declaration files... (esm)
11
+ start  generating declaration files... (cjs)
12
+ ready  declaration files generated in 3.68 s (esm)
13
+ ready  declaration files generated in 3.64 s (cjs)
14
14
 
15
15
   File (esm) Size 
16
16
  dist/pkgs/types/index.js 0.00 kB
@@ -18,7 +18,7 @@
18
18
  dist/pkgs/logger/index.js 7.2 kB
19
19
  dist/integrations/node.js 9.1 kB
20
20
  dist/integrations/next.js 9.6 kB
21
- dist/integrations/cloudflare.js 11.8 kB
21
+ dist/integrations/cloudflare.js 11.7 kB
22
22
  dist/pkgs/results/index.js 22.2 kB
23
23
  dist/pkgs/db-adapters/adapters/memory-adapter/index.js 49.4 kB
24
24
  dist/pkgs/db-adapters/adapters/prisma-adapter/index.js 52.6 kB
@@ -26,33 +26,33 @@
26
26
  dist/pkgs/migrations/index.js 55.5 kB
27
27
  dist/pkgs/db-adapters/adapters/kysely-adapter/index.js 60.4 kB
28
28
  dist/pkgs/data-model/schema/index.js 74.6 kB
29
- dist/schema/index.js 74.9 kB
30
- dist/pkgs/data-model/index.js 75.6 kB
29
+ dist/schema/index.js 74.8 kB
30
+ dist/pkgs/data-model/index.js 75.5 kB
31
31
  dist/pkgs/db-adapters/index.js 94.3 kB
32
- dist/index.js 154.6 kB
32
+ dist/index.js 154.4 kB
33
33
 
34
- Total: 812.6 kB
34
+ Total: 811.9 kB
35
35
 
36
36
   -----
37
37
 
38
38
   File (cjs) Size 
39
- dist/pkgs/types/index.cjs 0.72 kB
40
- dist/pkgs/data-model/fields/index.cjs 7.0 kB
41
- dist/pkgs/logger/index.cjs 8.1 kB
39
+ dist/pkgs/types/index.cjs 0.60 kB
40
+ dist/pkgs/data-model/fields/index.cjs 7.3 kB
41
+ dist/pkgs/logger/index.cjs 8.6 kB
42
42
  dist/integrations/node.cjs 10.2 kB
43
- dist/integrations/next.cjs 10.7 kB
43
+ dist/integrations/next.cjs 10.8 kB
44
44
  dist/integrations/cloudflare.cjs 12.9 kB
45
- dist/pkgs/results/index.cjs 23.1 kB
45
+ dist/pkgs/results/index.cjs 24.8 kB
46
46
  dist/pkgs/db-adapters/adapters/memory-adapter/index.cjs 50.1 kB
47
47
  dist/pkgs/db-adapters/adapters/prisma-adapter/index.cjs 53.3 kB
48
48
  dist/pkgs/db-adapters/adapters/drizzle-adapter/index.cjs 55.6 kB
49
- dist/pkgs/migrations/index.cjs 56.4 kB
49
+ dist/pkgs/migrations/index.cjs 57.0 kB
50
50
  dist/pkgs/db-adapters/adapters/kysely-adapter/index.cjs 61.2 kB
51
- dist/pkgs/data-model/schema/index.cjs 82.2 kB
52
- dist/schema/index.cjs 82.6 kB
53
- dist/pkgs/data-model/index.cjs 83.5 kB
54
- dist/pkgs/db-adapters/index.cjs 95.0 kB
55
- dist/index.cjs 168.3 kB
51
+ dist/pkgs/data-model/schema/index.cjs 83.9 kB
52
+ dist/schema/index.cjs 84.4 kB
53
+ dist/pkgs/data-model/index.cjs 86.1 kB
54
+ dist/pkgs/db-adapters/index.cjs 95.4 kB
55
+ dist/index.cjs 168.1 kB
56
56
 
57
- Total: 861.0 kB
57
+ Total: 870.3 kB
58
58
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  
3
- > @c15t/backend@0.0.1-rc.18 fmt /Users/christopherburns/glados/k/c15t/packages/backend
3
+ > @c15t/backend@0.0.1-rc.19 fmt /Users/christopherburns/glados/k/c15t/packages/backend
4
4
  > pnpm biome format --write . && biome check --formatter-enabled=false --linter-enabled=false --organize-imports-enabled=true --write
5
5
 
6
- Formatted 167 files in 79ms. No fixes applied.
7
- Checked 362 files in 52ms. Fixed 29 files.
6
+ Formatted 167 files in 140ms. No fixes applied.
7
+ Checked 362 files in 81ms. Fixed 28 files.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @c15t/backend@0.0.1-rc.14 lint /Users/christopherburns/glados/k/c15t/packages/backend
3
+ > @c15t/backend@0.0.1-rc.19 lint /Users/christopherburns/glados/k/c15t/packages/backend
4
4
  > pnpm biome lint ./src
5
5
 
6
- Checked 161 files in 31ms. No fixes applied.
6
+ Checked 162 files in 106ms. No fixes applied.
@@ -1,19 +1,31 @@
1
1
 
2
2
  
3
- > @c15t/backend@0.0.1-rc.18 test /Users/christopherburns/glados/k/c15t/packages/backend
3
+ > @c15t/backend@0.0.1-rc.19 test /Users/christopherburns/glados/k/c15t/packages/backend
4
4
  > vitest
5
5
 
6
6
  [?25l
7
7
   DEV  v3.1.1 /Users/christopherburns/glados/k/c15t/packages/backend
8
8
 
9
9
  [?2026h
10
-  ❯ src/routes/__test__/set-consent.test.ts [queued]
10
+  ❯ src/routes/__test__/verify-consent.test.ts [queued]
11
11
 
12
12
   Test Files 0 passed (23)
13
13
   Tests 0 passed (0)
14
-  Start at 11:38:22
15
-  Duration 100ms
16
- [?2026l[?2026h ✓ src/pkgs/api-router/hooks/__tests__/processor.test.ts (6 tests) 11ms
14
+  Start at 19:43:01
15
+  Duration 307ms
16
+ [?2026l[?2026h
17
+  ❯ src/pkgs/api-router/hooks/__tests__/processor.test.ts 0/6
18
+  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
19
+  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
20
+  ❯ src/pkgs/results/__tests__/result-helpers.test.ts [queued]
21
+  ❯ src/routes/__test__/set-consent.test.ts [queued]
22
+  ❯ src/routes/__test__/verify-consent.test.ts [queued]
23
+
24
+  Test Files 0 passed (23)
25
+  Tests 0 passed (6)
26
+  Start at 19:43:01
27
+  Duration 418ms
28
+ [?2026l[?2026h ✓ src/pkgs/api-router/hooks/__tests__/processor.test.ts (6 tests) 20ms
17
29
 
18
30
   ❯ src/pkgs/api-router/hooks/__tests__/processor.test.ts 6/6
19
31
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
@@ -24,365 +36,43 @@
24
36
 
25
37
   Test Files 1 passed (23)
26
38
   Tests 6 passed (17)
27
-  Start at 11:38:22
28
-  Duration 299ms
29
- [?2026l[?2026h ✓ src/pkgs/results/__tests__/result-helpers.test.ts (11 tests) 5ms
30
- ✓ src/pkgs/logger/__tests__/integration.test.ts (5 tests) 6ms
39
+  Start at 19:43:01
40
+  Duration 619ms
41
+ [?2026l[?2026h ✓ src/pkgs/results/__tests__/result-helpers.test.ts (11 tests) 14ms
31
42
 
32
43
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
33
44
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
34
-  ❯ src/pkgs/logger/__tests__/integration.test.ts 5/5
35
-  ❯ src/pkgs/results/__tests__/error-class.test.ts [queued]
45
+  ❯ src/pkgs/logger/__tests__/integration.test.ts [queued]
46
+  ❯ src/pkgs/results/__tests__/result-helpers.test.ts 11/11
36
47
   ❯ src/routes/__test__/set-consent.test.ts [queued]
37
48
   ❯ src/routes/__test__/verify-consent.test.ts [queued]
38
49
 
39
-  Test Files 3 passed (23)
40
-  Tests 22 passed (22)
41
-  Start at 11:38:22
42
-  Duration 400ms
43
- [?2026l[?2026h ✓ src/pkgs/results/__tests__/error-class.test.ts (12 tests) 8ms
44
- ✓ src/routes/__test__/set-consent.test.ts (6 tests) 6ms
45
- ✓ src/routes/__test__/verify-consent.test.ts (9 tests) 7ms
46
-
47
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
48
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
49
-  ❯ src/pkgs/logger/__tests__/logger-factory.test.ts [queued]
50
-  ❯ src/pkgs/results/__tests__/error-class.test.ts 12/12
51
-  ❯ src/routes/__test__/set-consent.test.ts 6/6
52
-  ❯ src/routes/__test__/verify-consent.test.ts 9/9
53
-
54
-  Test Files 6 passed (23)
55
-  Tests 49 passed (49)
56
-  Start at 11:38:22
57
-  Duration 500ms
58
- [?2026l[?2026h ✓ src/pkgs/logger/__tests__/logger-factory.test.ts (7 tests) 9ms
59
-
60
-  ❯ src/init.test.ts [queued]
61
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
62
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
63
-  ❯ src/pkgs/logger/__tests__/logger-factory.test.ts 7/7
64
-  ❯ src/routes/__test__/set-consent.test.ts 6/6
65
-  ❯ src/routes/__test__/verify-consent.test.ts 9/9
66
-
67
-  Test Files 7 passed (23)
68
-  Tests 56 passed (56)
69
-  Start at 11:38:22
70
-  Duration 600ms
50
+  Test Files 2 passed (23)
51
+  Tests 17 passed (17)
52
+  Start at 19:43:01
53
+  Duration 826ms
71
54
  [?2026l[?2026h
72
-  ❯ src/init.test.ts [queued]
73
55
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
74
56
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
75
-  ❯ src/pkgs/logger/__tests__/logger-factory.test.ts 7/7
76
-  ❯ src/pkgs/logger/__tests__/result-logging.test.ts 1/7
77
-  ❯ src/pkgs/results/__tests__/retrieval-pipeline.test.ts [queued]
78
-
79
-  Test Files 7 passed (23)
80
-  Tests 57 passed (63)
81
-  Start at 11:38:22
82
-  Duration 700ms
83
- [?2026l[?2026h ✓ src/pkgs/logger/__tests__/result-logging.test.ts (7 tests) 4ms
84
- ✓ src/pkgs/results/__tests__/retrieval-pipeline.test.ts (8 tests) 5ms
85
-
86
-  ❯ src/init.test.ts [queued]
87
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
88
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
89
-  ❯ src/pkgs/logger/__tests__/result-logging.test.ts 7/7
90
-  ❯ src/pkgs/results/__tests__/retrieval-pipeline.test.ts 8/8
91
-  ❯ src/pkgs/results/__tests__/validation-pipeline.test.ts 0/5
92
-
93
-  Test Files 9 passed (23)
94
-  Tests 71 passed (76)
95
-  Start at 11:38:22
96
-  Duration 900ms
97
- [?2026l[?2026h ✓ src/pkgs/results/__tests__/validation-pipeline.test.ts (5 tests) 5ms
57
+  ❯ src/pkgs/logger/__tests__/integration.test.ts [queued]
58
+  ❯ src/pkgs/results/__tests__/error-class.test.ts [queued]
59
+  ❯ src/routes/__test__/set-consent.test.ts [queued]
60
+  ❯ src/routes/__test__/verify-consent.test.ts [queued]
98
61
 
99
-  src/init.test.ts [queued]
62
+  Test Files 2 passed (23)
63
+  Tests 17 passed (17)
64
+  Start at 19:43:01
65
+  Duration 944ms
66
+ [?2026l[?2026h
100
67
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts [queued]
101
68
   ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts [queued]
102
-  ❯ src/pkgs/results/__tests__/recovery-utils.test.ts [queued]
103
-  ❯ src/pkgs/results/__tests__/retrieval-pipeline.test.ts 8/8
104
-  ❯ src/pkgs/results/__tests__/validation-pipeline.test.ts 5/5
105
-
106
-  Test Files 10 passed (23)
107
-  Tests 76 passed (76)
108
-  Start at 11:38:22
109
-  Duration 1.00s
110
- [?2026l[?2026h ✓ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts (9 tests | 1 skipped) 14ms
111
- ✓ src/pkgs/api-router/utils/core.test.ts (11 tests) 3ms
112
- ✓ src/pkgs/results/__tests__/recovery-utils.test.ts (7 tests) 4ms
113
-
114
-  ❯ src/init.test.ts [queued]
115
-  ❯ src/pkgs/api-router/utils/core.test.ts 11/11
116
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
117
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/sqlite.test.ts 9/9
118
-  ❯ src/pkgs/logger/__tests__/types.test.ts [queued]
119
-  ❯ src/pkgs/results/__tests__/recovery-utils.test.ts 7/7
120
-
121
-  Test Files 13 passed (23)
122
-  Tests 102 passed | 1 skipped (112)
123
-  Start at 11:38:22
124
-  Duration 1.10s
125
- [?2026l[?2026h ✓ src/pkgs/logger/__tests__/types.test.ts (4 tests) 3ms
126
-
127
-  ❯ src/init.test.ts [queued]
128
-  ❯ src/pkgs/api-router/utils/core.test.ts 11/11
129
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
130
-  ❯ src/pkgs/logger/__tests__/log-levels.test.ts [queued]
131
-  ❯ src/pkgs/logger/__tests__/types.test.ts 4/4
132
-  ❯ src/pkgs/results/__tests__/recovery-utils.test.ts 7/7
133
-
134
-  Test Files 14 passed (23)
135
-  Tests 106 passed | 1 skipped (116)
136
-  Start at 11:38:22
137
-  Duration 1.20s
138
- [?2026l[?2026h ✓ src/pkgs/logger/__tests__/log-levels.test.ts (4 tests) 3ms
139
-
140
-  ❯ src/init.test.ts [queued]
141
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
142
-  ❯ src/pkgs/logger/__tests__/log-levels.test.ts 4/4
143
-  ❯ src/pkgs/results/__tests__/neverthrow-integration.test.ts 0/5
144
-  ❯ src/routes/__test__/index.test.ts [queued]
145
-  ❯ src/routes/__test__/show-consent-banner.test.ts [queued]
146
-
147
-  Test Files 15 passed (23)
148
-  Tests 110 passed | 1 skipped (125)
149
-  Start at 11:38:22
150
-  Duration 1.40s
151
- [?2026l[?2026h ✓ src/pkgs/results/__tests__/neverthrow-integration.test.ts (5 tests) 6ms
152
- ✓ src/routes/__test__/show-consent-banner.test.ts (3 tests) 2ms
153
- ❯ src/routes/__test__/index.test.ts (20 tests | 2 failed) 15ms
154
- ✓ setConsent > should expect validation error for cookie banner consent record 2ms
155
- ✓ setConsent > should expect validation error for policy-based consent record 0ms
156
- ✓ setConsent > should expect validation error when subject creation fails 0ms
157
- ✓ setConsent > should expect validation error when policy not found 0ms
158
- ✓ setConsent > should expect validation error when policy is not active 0ms
159
- ✓ setConsent > should expect validation error when transaction fails 0ms
160
- ✓ verifyConsent > should expect validation error when verifying consent 0ms
161
- ✓ verifyConsent > should expect validation error when verifying with a specific policy ID 0ms
162
- ✓ verifyConsent > should expect validation error when subject not found 0ms
163
- ✓ verifyConsent > should expect validation error when domain not found 0ms
164
- ✓ verifyConsent > should expect validation error when cookie banner has no preferences 0ms
165
- ✓ verifyConsent > should expect validation error when policy not found 0ms
166
- ✓ verifyConsent > should expect validation error when purpose not found 0ms
167
- ✓ verifyConsent > should expect validation error when no consents found 0ms
168
- ✓ verifyConsent > should expect validation error when filtering consents by purpose IDs 0ms
169
- ✓ showConsentBanner > should show banner for EU countries (GDPR) 0ms
170
- ✓ showConsentBanner > should show banner for UK (GDPR equivalent) 0ms
171
- ✓ showConsentBanner > should not show banner for non-regulated countries 0ms
172
-  × status > should return status OK when adapter is available 6ms
173
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
174
-  × status > should handle case when adapter is unavailable 3ms
175
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
176
-
177
-  ❯ src/init.test.ts [queued]
178
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
179
-  ❯ src/pkgs/results/__tests__/error-codes.test.ts [queued]
180
-  ❯ src/pkgs/results/__tests__/neverthrow-integration.test.ts 5/5
181
-
182
-  Test Files 1 failed | 17 passed (23)
183
-  Tests 2 failed | 136 passed | 1 skipped (148)
184
-  Start at 11:38:22
185
-  Duration 1.50s
186
- [?2026l[?2026h ✓ src/pkgs/results/__tests__/error-codes.test.ts (6 tests) 3ms
187
- ✓ src/pkgs/logger/__tests__/console-formatter.test.ts (5 tests) 2ms
188
-
189
-  ❯ src/init.test.ts 1/11
190
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
191
-  ❯ src/routes/__test__/status.test.ts [queued]
192
-
193
-  Test Files 1 failed | 19 passed (23)
194
-  Tests 2 failed | 148 passed | 1 skipped (170)
195
-  Start at 11:38:22
196
-  Duration 1.61s
197
- [?2026l[?2026h ✓ src/init.test.ts (11 tests) 26ms
198
- ✓ src/routes/__test__/status.test.ts (2 tests) 7ms
199
-
200
-
201
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 0/9
202
-
203
-  Test Files 1 failed | 21 passed (23)
204
-  Tests 2 failed | 160 passed | 1 skipped (172)
205
-  Start at 11:38:22
206
-  Duration 1.91s
207
- [?2026l[?2026h
208
-
209
-  ❯ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts 1/9
210
-
211
-  Test Files 1 failed | 21 passed (23)
212
-  Tests 2 failed | 161 passed | 1 skipped (172)
213
-  Start at 11:38:22
214
-  Duration 2.11s
215
- [?2026l ✓ src/pkgs/db-adapters/adapters/kysely-adapter/tests/postgres.test.ts (9 tests) 1009ms
216
-
217
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
218
-
219
-  FAIL  src/routes/__test__/index.test.ts > status > should return status OK when adapter is available
220
- AssertionError: expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
221
-
222
- - Expected
223
- + Received
224
-
225
- @@ -3,7 +3,7 @@
226
-  "storage": {
227
-  "available": true,
228
-  "type": "TestAdapter",
229
-  },
230
-  "timestamp": "2023-01-01T12:00:00.000Z",
231
- - "version": "0.0.1-rc.18",
232
- + "version": "2.0.0",
233
-  }
234
-
235
-  ❯ src/routes/__test__/status.test.ts:40:18
236
-  38|  const result = await status.handler(createMockEvent(mockAdapter));
237
-  39| 
238
-  40|  expect(result).toEqual({
239
-  |  ^
240
-  41|  status: 'ok',
241
-  42|  version: version,
242
-
243
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
244
-
245
-  FAIL  src/routes/__test__/index.test.ts > status > should handle case when adapter is unavailable
246
- AssertionError: expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
247
-
248
- - Expected
249
- + Received
250
-
251
- @@ -3,7 +3,7 @@
252
-  "storage": {
253
-  "available": false,
254
-  "type": "Unavailable",
255
-  },
256
-  "timestamp": "2023-01-01T12:00:00.000Z",
257
- - "version": "0.0.1-rc.18",
258
- + "version": "2.0.0",
259
-  }
260
-
261
-  ❯ src/routes/__test__/status.test.ts:54:18
262
-  52|  const result = await status.handler(createMockEvent(null));
263
-  53| 
264
-  54|  expect(result).toEqual({
265
-  |  ^
266
-  55|  status: 'ok',
267
-  56|  version: version,
268
-
269
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
270
-
271
-
272
-  Test Files  1 failed | 22 passed (23)
273
-  Tests  2 failed | 169 passed | 1 skipped (172)
274
-  Start at  11:38:22
275
-  Duration  2.16s (transform 927ms, setup 0ms, collect 4.76s, tests 1.16s, environment 3ms, prepare 1.56s)
276
-
277
-  FAIL  Tests failed. Watching for file changes...
278
- press h to show help, press q to quit
279
- c RERUN  src/routes/__test__/status.test.ts x1 
280
-
281
- ❯ src/routes/__test__/index.test.ts (20 tests | 2 failed) 15ms
282
- ✓ setConsent > should expect validation error for cookie banner consent record 2ms
283
- ✓ setConsent > should expect validation error for policy-based consent record 0ms
284
- ✓ setConsent > should expect validation error when subject creation fails 0ms
285
- ✓ setConsent > should expect validation error when policy not found 0ms
286
- ✓ setConsent > should expect validation error when policy is not active 0ms
287
- ✓ setConsent > should expect validation error when transaction fails 0ms
288
- ✓ verifyConsent > should expect validation error when verifying consent 0ms
289
- ✓ verifyConsent > should expect validation error when verifying with a specific policy ID 0ms
290
- ✓ verifyConsent > should expect validation error when subject not found 0ms
291
- ✓ verifyConsent > should expect validation error when domain not found 0ms
292
- ✓ verifyConsent > should expect validation error when cookie banner has no preferences 0ms
293
- ✓ verifyConsent > should expect validation error when policy not found 0ms
294
- ✓ verifyConsent > should expect validation error when purpose not found 0ms
295
- ✓ verifyConsent > should expect validation error when no consents found 0ms
296
- ✓ verifyConsent > should expect validation error when filtering consents by purpose IDs 0ms
297
- ✓ showConsentBanner > should show banner for EU countries (GDPR) 0ms
298
- ✓ showConsentBanner > should show banner for UK (GDPR equivalent) 0ms
299
- ✓ showConsentBanner > should not show banner for non-regulated countries 0ms
300
-  × status > should return status OK when adapter is available 6ms
301
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
302
-  × status > should handle case when adapter is unavailable 3ms
303
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
304
- [?2026h
305
-  ❯ src/routes/__test__/status.test.ts [queued]
306
-
307
-  Test Files 0 passed (1)
308
-  Tests 0 passed (0)
309
-  Start at 11:38:56
310
-  Duration 2.11s
311
- [?2026lstdout | src/routes/__test__/status.test.ts > status > should return status OK when adapter is available
312
- {
313
- status: 'ok',
314
- version: '0.0.1-rc.18',
315
- timestamp: '2023-01-01T12:00:00.000Z',
316
- storage: { type: 'TestAdapter', available: true }
317
- }
318
-
319
- ✓ src/routes/__test__/status.test.ts (2 tests) 4ms
320
- ✓ status > should return status OK when adapter is available 3ms
321
- ✓ status > should handle case when adapter is unavailable 0ms
322
-
323
-  Test Files  1 failed | 1 passed (2)
324
-  Tests  2 failed | 20 passed (22)
325
-  Start at  11:38:56
326
-  Duration  49ms
327
-
328
-  PASS  Waiting for file changes...
329
- press h to show help, press q to quit
330
- c RERUN  src/routes/__test__/status.test.ts x2 
331
-
332
- ❯ src/routes/__test__/index.test.ts (20 tests | 2 failed) 15ms
333
- ✓ setConsent > should expect validation error for cookie banner consent record 2ms
334
- ✓ setConsent > should expect validation error for policy-based consent record 0ms
335
- ✓ setConsent > should expect validation error when subject creation fails 0ms
336
- ✓ setConsent > should expect validation error when policy not found 0ms
337
- ✓ setConsent > should expect validation error when policy is not active 0ms
338
- ✓ setConsent > should expect validation error when transaction fails 0ms
339
- ✓ verifyConsent > should expect validation error when verifying consent 0ms
340
- ✓ verifyConsent > should expect validation error when verifying with a specific policy ID 0ms
341
- ✓ verifyConsent > should expect validation error when subject not found 0ms
342
- ✓ verifyConsent > should expect validation error when domain not found 0ms
343
- ✓ verifyConsent > should expect validation error when cookie banner has no preferences 0ms
344
- ✓ verifyConsent > should expect validation error when policy not found 0ms
345
- ✓ verifyConsent > should expect validation error when purpose not found 0ms
346
- ✓ verifyConsent > should expect validation error when no consents found 0ms
347
- ✓ verifyConsent > should expect validation error when filtering consents by purpose IDs 0ms
348
- ✓ showConsentBanner > should show banner for EU countries (GDPR) 0ms
349
- ✓ showConsentBanner > should show banner for UK (GDPR equivalent) 0ms
350
- ✓ showConsentBanner > should not show banner for non-regulated countries 0ms
351
-  × status > should return status OK when adapter is available 6ms
352
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
353
-  × status > should handle case when adapter is unavailable 3ms
354
-  → expected { Object (status, version, ...) } to deeply equal { status: 'ok', …(3) }
355
- [?2026h
356
-  ❯ src/routes/__test__/status.test.ts [queued]
357
-
358
-  Test Files 0 passed (1)
359
-  Tests 0 passed (0)
360
-  Start at 11:39:09
361
-  Duration 2.11s
362
- [?2026lstdout | src/routes/__test__/status.test.ts > status > should return status OK when adapter is available
363
- {
364
- status: 'ok',
365
- version: '0.0.1-rc.18',
366
- timestamp: '2023-01-01T12:00:00.000Z',
367
- storage: { type: 'TestAdapter', available: true }
368
- }
369
-
370
- stdout | src/routes/__test__/status.test.ts > status > should handle case when adapter is unavailable
371
- {
372
- status: 'ok',
373
- version: '0.0.1-rc.18',
374
- timestamp: '2023-01-01T12:00:00.000Z',
375
- storage: { type: 'Unavailable', available: false }
376
- }
377
-
378
- ✓ src/routes/__test__/status.test.ts (2 tests) 4ms
379
- ✓ status > should return status OK when adapter is available 3ms
380
- ✓ status > should handle case when adapter is unavailable 0ms
381
-
382
-  Test Files  1 failed | 1 passed (2)
383
-  Tests  2 failed | 20 passed (22)
384
-  Start at  11:39:09
385
-  Duration  76ms
69
+  ❯ src/pkgs/logger/__tests__/integration.test.ts 0/5
70
+  ❯ src/pkgs/results/__tests__/error-class.test.ts [queued]
71
+  ❯ src/routes/__test__/set-consent.test.ts [queued]
72
+  ❯ src/routes/__test__/verify-consent.test.ts [queued]
386
73
 
387
-  PASS  Waiting for file changes...
388
- press h to show help, press q to quit
74
+  Test Files 2 passed (23)
75
+  Tests 17 passed (22)
76
+  Start at 19:43:01
77
+  Duration 1.47s
78
+ [?2026l