Skip to content

Commit 41003de

Browse files
committed
fix: update dependencies
Closes #551
1 parent f54ad17 commit 41003de

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@bifravst/prettier-config": "1.0.3",
3737
"@commitlint/config-conventional": "19.2.2",
3838
"@types/aws-lambda": "8.10.140",
39-
"@types/node": "20.14.7",
39+
"@types/node": "20.14.9",
4040
"globstar": "1.0.0",
4141
"husky": "9.0.11",
4242
"nock": "^14.0.0-beta.7",

src/lib/doRequest.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ void describe('doRequest()', () => {
4040
})
4141

4242
void it('should retry the request if the assert fails', async () => {
43-
const mockFetch = mock.fn()
43+
const mockFetch = mock.fn<() => Promise<ReturnType<typeof fetch>>>()
4444
mockFetch.mock.mockImplementationOnce(
4545
async () =>
4646
Promise.resolve({
4747
status: 404,
4848
headers: new Map<string, string>([]),
49-
}),
49+
} as any),
5050
0,
5151
)
5252
mockFetch.mock.mockImplementationOnce(
@@ -57,7 +57,7 @@ void describe('doRequest()', () => {
5757
['content-type', 'application/json'],
5858
]),
5959
json: async () => Promise.resolve({ foo: 'bar' }),
60-
}),
60+
} as any),
6161
1,
6262
)
6363
const assertFn = mock.fn(async ({ response }) =>

0 commit comments

Comments
 (0)