feat: enhance type safety in security API and related tests
This commit is contained in:
8
frontend/src/types/test-shims.d.ts
vendored
8
frontend/src/types/test-shims.d.ts
vendored
@@ -1,5 +1,9 @@
|
||||
// Test-only type shims to satisfy strict type-checking in CI
|
||||
// Properly type the default export from @testing-library/user-event
|
||||
declare module '@testing-library/user-event' {
|
||||
const userEvent: any;
|
||||
export default userEvent;
|
||||
import type { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'
|
||||
const userEvent: UserEvent
|
||||
export default userEvent
|
||||
export { userEvent }
|
||||
export type { UserEvent }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user