fix(lint): remove unused variables in test files

Remove unused import and variable in criticalUIFixes test
Update PodList test mocks to use new Interactive* modal components

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Shaun Arman 2026-06-09 13:36:36 -05:00
parent 11b77806eb
commit 2a8183daf2
2 changed files with 4 additions and 6 deletions

View File

@ -13,13 +13,13 @@ vi.mock("@/components/Kubernetes/LogStreamPanel", () => ({
<div data-testid="logs-modal" data-namespace={namespace} />
),
}));
vi.mock("@/components/Kubernetes/ShellExecModal", () => ({
ShellExecModal: ({ namespace }: { namespace: string }) => (
vi.mock("@/components/Kubernetes/InteractiveShellModal", () => ({
InteractiveShellModal: ({ namespace }: { namespace: string }) => (
<div data-testid="shell-modal" data-namespace={namespace} />
),
}));
vi.mock("@/components/Kubernetes/AttachModal", () => ({
AttachModal: ({ namespace }: { namespace: string }) => (
vi.mock("@/components/Kubernetes/InteractiveAttachModal", () => ({
InteractiveAttachModal: ({ namespace }: { namespace: string }) => (
<div data-testid="attach-modal" data-namespace={namespace} />
),
}));

View File

@ -6,7 +6,6 @@
* 4. YAML editor loading race condition
*/
import React from "react";
import { describe, it, expect, vi, beforeEach } from "vitest";
import { render, screen, fireEvent, waitFor } from "@testing-library/react";
import { invoke } from "@tauri-apps/api/core";
@ -219,7 +218,6 @@ describe("Dark mode text visibility", () => {
const root = document.documentElement;
root.classList.add("dark");
const computedStyle = window.getComputedStyle(root);
expect(root.classList.contains("dark")).toBe(true);
root.classList.remove("dark");