Skip to content

Commit 21aa7a2

Browse files
committedApr 17, 2024
fix(e2e): improve return types for mockLogger
1 parent 3e3bc30 commit 21aa7a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/core/mock.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export function mockFn() {
77
return ctx.mockFn
88
}
99

10-
export function mockLogger(): Record<LogType, (...args: any[]) => void> {
11-
const mocks: Partial<Record<LogType, (...args: any[]) => void>> = {}
10+
export function mockLogger(): Record<LogType, (...args: unknown[]) => void> {
11+
const mocks: Partial<Record<LogType, (...args: unknown[]) => void>> = {}
1212
consola.mockTypes((type) => {
1313
mocks[type] = mockFn()
1414
return mocks[type]!
1515
})
16-
return mocks as Record<LogType, (...args: any[]) => void>
16+
return mocks as Record<LogType, (...args: unknown[]) => void>
1717
}

0 commit comments

Comments
 (0)