Commit 286904a
committed
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.mts1 parent 7b31f7e commit 286904a
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