Commit 2a8c150
committed
test(driver-memory): type the aggregation conformance query instead of erasing it
The query-options-erasure ratchet (#4918) went red: the new aggregation suite
added 3 counted sites (242 -> 245) by casting `queryFor(c) as any` at each of
its three call sites — the two doors of the data face plus the never-answers-
null property row.
Typed rather than exempted. `queryFor` now declares `DriverQuery` as its return
type (import-reachable from `@objectstack/spec/contracts`, the same type
`MemoryDriver.find` takes), so all three arguments are checked by `tsc` and no
call site needs a cast. The `as unknown as` spelling would have been wrong here:
every case in this file is deliberately ON contract — the whole point is that
the standard's own vocabulary reaches the driver — so there is no bypassed
contract to name.
The baseline is NOT raised: the count returns to the 242 ceiling.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NuzQE844ut8m8vypXcdBYD1 parent e470ac1 commit 2a8c150
1 file changed
Lines changed: 14 additions & 5 deletions
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
140 | 149 | | |
141 | 150 | | |
142 | 151 | | |
143 | | - | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
| |||
151 | 160 | | |
152 | 161 | | |
153 | 162 | | |
154 | | - | |
| 163 | + | |
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
| |||
165 | 174 | | |
166 | 175 | | |
167 | 176 | | |
168 | | - | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
0 commit comments