Commit debf92f
committed
refactor(sea, test): rename sea/binary → sea/util + fix git-extended timeouts
Two changes folded together in this commit:
──── 1. rename sea/binary.ts → sea/util.ts ────
Aligns the per-subdirectory file convention so both `src/sea/` and
`src/smol/` use the same `util.ts` filename for the file containing
"detection + accessor for the same concept":
src/sea/util.ts — isSeaBinary + getSeaBinaryPath
src/smol/util.ts — isSmol + getSmolUtil (+ SmolUtilBinding)
Test moved: test/unit/sea/binary.test.mts → test/unit/sea/util.test.mts.
Public import path:
'@socketsecurity/lib/sea/binary' → '@socketsecurity/lib/sea/util'
──── 2. fix flaky git-extended test timeouts ────
The 13 tests inside `describe('real git operations')` in
test/unit/git-extended.test.mts each do 4-15 `spawnSync('git', ...)`
calls. Under CPU contention from the full-suite parallel run
(~169 test files), individual git ops can take 5-10s, exceeding
vitest's default 10s testTimeout and flaking.
Bumps the describe-scope timeout to 30s via `vi.setConfig()`. No
test logic changes — just gives slow git ops headroom under load.
Verified: full suite now runs to completion (6669 tests green,
31 skipped, 169 files).1 parent 5a72812 commit debf92f
5 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
642 | | - | |
643 | | - | |
644 | | - | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments