Commit cd462e0
committed
test(action-picker): add PBT edgecases; fix 2 bugs found by it
Property-based testing closed the one coverage gap (action-picker-helpers had
no .edgecases.test.ts) and immediately surfaced two pre-existing root-cause bugs:
- normalizeKeyName: plain-object lookup returned inherited Object.prototype
members (e.g. 'toString' -> the function) instead of falling through. Guard
with Object.hasOwn.
- autoName(launch): '??' didn't catch the empty-string basename, so an empty or
separator-ending target produced an empty display name. Use '||'.
New: src/lib/action-picker-helpers.edgecases.test.ts (18 properties, 5-category
framework; concurrency/temporal N/A for pure fns). Report in plans/edge-cases/.
Gates: tsc + vitest 1068 + knip all green.1 parent ab3454e commit cd462e0
3 files changed
Lines changed: 419 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | 20 | | |
| |||
0 commit comments