Commit e28fefc
Fix test mocks for withSdk usage
Add handleApiCall mock for tests using withSdk. The withSdk helper dynamically imports handleApiCall from api.mts at runtime, so tests must mock both sdk.mts and api.mts modules.
Fixes:
- fetch-delete-org-full-scan.test.mts
- fetch-purls-shallow-score.test.mts
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1bdc9df commit e28fefc
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- src/commands
- package
- scan
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments