feat: enhance type safety in security API and related tests

This commit is contained in:
GitHub Actions
2025-12-06 02:57:51 +00:00
parent 8e2ba14ae5
commit 8ef1e7cda0
12 changed files with 67 additions and 50 deletions

View File

@@ -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 }
}