Commit 4eb10c6
committed
fix(core): reject duplicate mock generator types during normalization
Validates that each mock type (msw, faker) appears at most once in
mock.generators. Duplicate entries would produce conflicting file
outputs, so we fail fast with a clear error message.
Also removes an unnecessary nullish coalescing on the required
generators field (lint: @typescript-eslint/no-unnecessary-condition).1 parent 08ac5cb commit 4eb10c6
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
204 | 215 | | |
205 | 216 | | |
206 | 217 | | |
| |||
0 commit comments