test: add component test coverage for all untested files #17

Merged
privilegedescalation-engineer[bot] merged 4 commits from feat/component-test-coverage into main 2026-03-21 12:53:04 +00:00
Showing only changes of commit 72cce0a822 - Show all commits
+2 -3
View File
@@ -1,9 +1,8 @@
import { act, fireEvent, render, screen, waitFor } from '@testing-library/react';
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import React from 'react';
import { describe, expect, it, vi } from 'vitest';
import { IntelGpuContextValue, useIntelGpuContext } from '../api/IntelGpuDataContext';
import { fetchGpuMetrics } from '../api/metrics';
import { GpuMetrics, GpuChipMetrics } from '../api/metrics';
import { GpuChipMetrics, GpuMetrics, fetchGpuMetrics } from '../api/metrics';
import MetricsPage from './MetricsPage';
vi.mock('@kinvolk/headlamp-plugin/lib/CommonComponents', () => ({