We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
mockLogger
1 parent 3e3bc30 commit 21aa7a2Copy full SHA for 21aa7a2
src/core/mock.ts
@@ -7,11 +7,11 @@ export function mockFn() {
7
return ctx.mockFn
8
}
9
10
-export function mockLogger(): Record<LogType, (...args: any[]) => void> {
11
- const mocks: Partial<Record<LogType, (...args: any[]) => void>> = {}
+export function mockLogger(): Record<LogType, (...args: unknown[]) => void> {
+ const mocks: Partial<Record<LogType, (...args: unknown[]) => void>> = {}
12
consola.mockTypes((type) => {
13
mocks[type] = mockFn()
14
return mocks[type]!
15
})
16
- return mocks as Record<LogType, (...args: any[]) => void>
+ return mocks as Record<LogType, (...args: unknown[]) => void>
17
0 commit comments