Commit 5d1bb95
committed
chore(tests): consolidate unit tests subsumed by property tests
Remove ~620 lines of unit tests that duplicate invariants already
covered by companion property-based tests. Each unit test file now
has a header comment documenting which invariants are in the property
file and what remains in the unit file.
Files trimmed:
- test/lib/dsn.test.ts: Remove extractOrgIdFromHost, parseDsn (basic),
isValidDsn, createDsnFingerprint (ordering/dedup), createDetectedDsn
(basic) — all covered by dsn.property.test.ts. Keep: self-hosted DSN
fingerprints, trailing slash edge case, path segments, packagePath.
- test/lib/promises.test.ts: Remove basic true/false/error tests —
covered by promises.property.test.ts. Keep: concurrency timing tests,
single-resolution guarantee.
- test/lib/bspatch.test.ts: Remove offtin unit tests and parsePatchHeader
rejection tests — covered by bspatch.property.test.ts. Keep: fixture-
based patch application, SHA-256 verification, truncated patch.
- test/lib/db/auth.test.ts: Remove priority, source tracking, refresh
skip, isEnvTokenActive basics — covered by auth.property.test.ts.
Keep: whitespace edge cases, isAuthenticated, getActiveEnvVarName,
shape assertions.
- test/lib/formatters/json.test.ts: Remove filterFields basics and
parseFieldsList dedup/whitespace — covered by json.property.test.ts.
Keep: dot-notation edge cases, null/undefined in objects, writeJson,
writeJsonList, formatJson APIs.
- test/lib/formatters/trace.test.ts: Remove redundant newline/contains
checks — covered by trace.property.test.ts. Keep: specific format
values, rendered vs plain mode, computeTraceSummary edge cases.1 parent a6d62d7 commit 5d1bb95
File tree
6 files changed
+56
-620
lines changed- test/lib
- db
- formatters
6 files changed
+56
-620
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | | - | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 20 | + | |
93 | 21 | | |
94 | 22 | | |
95 | 23 | | |
| |||
109 | 37 | | |
110 | 38 | | |
111 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
112 | 47 | | |
113 | 48 | | |
114 | 49 | | |
| |||
126 | 61 | | |
127 | 62 | | |
128 | 63 | | |
129 | | - | |
130 | 64 | | |
131 | 65 | | |
132 | 66 | | |
133 | 67 | | |
134 | 68 | | |
135 | 69 | | |
136 | | - | |
137 | 70 | | |
138 | 71 | | |
139 | 72 | | |
| |||
185 | 118 | | |
186 | 119 | | |
187 | 120 | | |
188 | | - | |
189 | 121 | | |
190 | 122 | | |
191 | 123 | | |
| |||
197 | 129 | | |
198 | 130 | | |
199 | 131 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | 132 | | |
210 | 133 | | |
211 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 47 | + | |
76 | 48 | | |
77 | 49 | | |
78 | 50 | | |
| |||
91 | 63 | | |
92 | 64 | | |
93 | 65 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 66 | + | |
118 | 67 | | |
119 | 68 | | |
120 | 69 | | |
| |||
135 | 84 | | |
136 | 85 | | |
137 | 86 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 87 | + | |
153 | 88 | | |
154 | 89 | | |
155 | 90 | | |
| |||
178 | 113 | | |
179 | 114 | | |
180 | 115 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 116 | + | |
196 | 117 | | |
197 | | - | |
198 | 118 | | |
199 | 119 | | |
200 | 120 | | |
| |||
0 commit comments