feat: add jest-dom matchers reference for vitest in test shims
This commit is contained in:
4
frontend/src/types/test-shims.d.ts
vendored
4
frontend/src/types/test-shims.d.ts
vendored
@@ -1,4 +1,8 @@
|
||||
// Test-only type shims to satisfy strict type-checking in CI
|
||||
|
||||
// Import jest-dom matchers for vitest
|
||||
/// <reference types="@testing-library/jest-dom/vitest" />
|
||||
|
||||
// Properly type the default export from @testing-library/user-event
|
||||
declare module '@testing-library/user-event' {
|
||||
import type { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'
|
||||
|
||||
Reference in New Issue
Block a user