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:
GitHub Actions
2026-02-06 05:24:06 +00:00
parent b37922de28
commit 92bdf471e8
5 changed files with 230 additions and 220 deletions

View File

@@ -69,7 +69,7 @@
"eslint": "^9.39.2",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.0",
"jsdom": "^28.0.0",
"jsdom": "25.0.1",
"knip": "^5.83.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.18",