Commit a091ccf
committed
refactor(dlx): remove unused call option and improve test isolation
Remove call option:
- Removed call option from DlxPackageOptions interface (not yet implemented)
- Only keep implemented options: yes, quiet, force
- Follows "don't add it if it's not used" principle
Improve test isolation:
- Refactored dlx-package tests to use runWithTempDir helper
- Each test now runs in its own isolated temporary directory
- Eliminates shared state and potential race conditions
- Aligns with dlx-binary test patterns for consistency
- Better support for parallel test execution
Benefits:
- Cleaner API surface (no unused options)
- More reliable tests with proper isolation
- Consistent test patterns across dlx modules
- Prevents flaky tests from shared temp directory usage1 parent 4f76ebe commit a091ccf
2 files changed
Lines changed: 437 additions & 448 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 141 | | |
148 | 142 | | |
149 | 143 | | |
| |||
0 commit comments