fix: correct i18n mock in CrowdSec tests and silence query warning
- Added [ready: true](http://_vscodecontentref_/6) to [react-i18next](http://_vscodecontentref_/7) mock in CrowdSecBouncerKeyDisplay tests to prevent infinite loading state - Mocked [getCrowdsecKeyStatus](http://_vscodecontentref_/8) in Security page tests to resolve "Query data cannot be undefined" warning - Ensures all Security dashboard related tests pass reliably without console errors
This commit is contained in:
@@ -44,6 +44,7 @@ vi.mock('react-i18next', () => ({
|
||||
}
|
||||
return translations[key] || key
|
||||
},
|
||||
ready: true,
|
||||
}),
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user