style: fix strict clippy and TypeScript type errors
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 56s
CI / Lint & Test (pull_request) Successful in 15m50s
CI / Build Linux (pull_request) Successful in 19m46s
CI / Build Windows (cross-compile) (pull_request) Successful in 29m28s

- Fix assertions on constants in clipboard.rs (use const blocks)
- Fix unnecessary unwrap after is_ok check in git.rs
- Remove redundant u64 >= 0 comparison in stats.rs
- Add #[allow(clippy::useless_vec)] to sorting tests
- Add missing beforeEach import to vitest.setup.ts
- Change global.Audio to globalThis.Audio in notifications.test.ts
- Add type annotations to fix null type narrowing in conversations.test.ts
This commit is contained in:
2026-01-25 23:48:14 -08:00
parent be25152eea
commit 1f5f95c8f3
9 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import "@testing-library/jest-dom/vitest";
import { vi } from "vitest";
import { vi, beforeEach } from "vitest";
// Mock Tauri invoke API
const mockInvokeResults: Record<string, unknown> = {};