Commit 61b9e2d
authored
[ez][drci] Remove unused mock in test (#7079)
Realized this mock doesn't matter since we use `@aws-sdk/client-s3` not
`aws-sdk`
Some answers from chatgpt about mocking so I don't forget:
`spyOn().mockImplementation` good for mocking single function in a file
(also seems to be stricter typed)
`jest.mock('./s3-wrapper/path/to/import')` + `(getS3Client as
jest.Mock).mockImplementation(() => mockS3);` good for mocking entire
file
After jest29 (?) `mocked(func)` is basically the same as `(func as
jest.Mock)` but with better typing?1 parent c1eb200 commit 61b9e2d
1 file changed
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments