Commit 07c8838
committed
chore(test/helpers): delete 2 dead modules + colocate 18 unused exports
Deleted entire files (zero adopted consumers):
- helpers/constants.mts (72 LOC, 7 TEST_* fixture constants)
- helpers/cli-process-pool.mts (223 LOC, CliProcessPool class +
cleanupProcessPool + getProcessPool — the pool was never adopted
by tests, all spawn through executeCliInScratch instead)
Colocated (used only as internal signatures):
- mock-auth.mts: MockAuthOptions, MockLoginOptions, MockTokenOptions,
MockOrgOptions, simulateDelay
- mock-malware-api.mts: ExtendedAlert, CompactSocketArtifactWithScore
- sdk-test-helpers.mts: getMockHandleApiCall, getMockSetupSdk +
delete setupSdkMockWithCustomSdk (entirely dead)
- environment.mts: delete resetExitCode, setupTestWithCleanup
(entirely dead) + drop now-unused afterEach import
- test-fixtures.mts: delete createTempFixtures (entirely dead)
helpers/index.mts: drop the constants.mts barrel re-export.1 parent 3361dcb commit 07c8838
8 files changed
Lines changed: 10 additions & 403 deletions
File tree
- packages/cli/test
- helpers
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 16 | | |
24 | 17 | | |
25 | 18 | | |
| |||
30 | 23 | | |
31 | 24 | | |
32 | 25 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
0 commit comments