feat: Improve type safety in security API calls and update test cases for SSL badge rendering
This commit is contained in:
5
frontend/src/types/test-shims.d.ts
vendored
Normal file
5
frontend/src/types/test-shims.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
// Test-only type shims to satisfy strict type-checking in CI
|
||||
declare module '@testing-library/user-event' {
|
||||
const userEvent: any;
|
||||
export default userEvent;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// ambient module declaration to satisfy typescript in editor environment
|
||||
declare module '@testing-library/user-event' {
|
||||
const userEvent: any;
|
||||
const userEvent: unknown;
|
||||
export default userEvent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user