Commit bdfbb7c
committed
test(storage): mock aws-sdk in s3 unit tests
The AWS SDK is a bring-your-own dependency and is not installed in CI.
Stub @aws-sdk/client-s3 and @aws-sdk/s3-request-presigner via vi.mock so
loading s3.ts (which statically imports both) does not require the real
packages. Verified by removing @aws-sdk from node_modules and rerunning:
all 26 resolveS3Config tests pass.1 parent f5fa1ed commit bdfbb7c
1 file changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
9 | 35 | | |
10 | 36 | | |
11 | 37 | | |
| |||
0 commit comments