Skip to content

Commit 8971021

Browse files
pomfridaclaude
andcommitted
fix(eds-utils): use explicit MockInstance type in deprecation warning test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 910582f commit 8971021

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

packages/eds-utils/src/hooks/useDeprecationWarning.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
1+
import {
2+
describe,
3+
it,
4+
expect,
5+
beforeEach,
6+
afterEach,
7+
vi,
8+
type MockInstance,
9+
} from 'vitest'
210
import { renderHook } from '@testing-library/react'
311
import { useDeprecationWarning } from './useDeprecationWarning'
412

513
describe('useDeprecationWarning', () => {
6-
let consoleWarnSpy: ReturnType<typeof vi.spyOn>
14+
let consoleWarnSpy: MockInstance
715
const originalEnv = process.env.NODE_ENV
816

917
beforeEach(() => {

0 commit comments

Comments
 (0)