mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-20 09:03:43 +02:00
Fix ESLint unused import errors in test files
Remove unused imports (waitFor, screen, render, vi, userEvent) from test files that were causing CI lint failures. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
5c7768401d
commit
fc917ec842
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { BackupModal } from '../../components/BackupModal';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { ContextMenu } from '../../components/ContextMenu';
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { render } from '../utils';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
import { server } from '../mocks/server';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { screen } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { EditQueueItemModal } from '../../components/EditQueueItemModal';
|
||||
|
||||
@@ -4,15 +4,13 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { render } from '../utils';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
import { server } from '../mocks/server';
|
||||
|
||||
// Skip these tests as FileManagerModal component structure may differ
|
||||
describe.skip('FileManagerModal', () => {
|
||||
const mockOnClose = vi.fn();
|
||||
const mockOnSelect = vi.fn();
|
||||
const _mockOnClose = vi.fn();
|
||||
const _mockOnSelect = vi.fn();
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { waitFor } from '@testing-library/react';
|
||||
import { render } from '../utils';
|
||||
import { Layout } from '../../components/Layout';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Note: UploadModal may be integrated into other components.
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
// Skip these tests as UploadModal may be integrated into FileManagerPage
|
||||
describe.skip('UploadModal', () => {
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { ArchivesPage } from '../../pages/ArchivesPage';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Tests for the FileManagerPage component.
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { MaintenancePage } from '../../pages/MaintenancePage';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
import { PrintersPage } from '../../pages/PrintersPage';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Tests for the QueuePage component.
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
||||
import { describe, it, expect, beforeEach } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import { render } from '../utils';
|
||||
|
||||
@@ -14,7 +14,7 @@ import '../i18n';
|
||||
// Setup MSW server - bypass WebSocket requests so our mock handles them
|
||||
beforeAll(() =>
|
||||
server.listen({
|
||||
onUnhandledRequest: (request, print) => {
|
||||
onUnhandledRequest: (request, _print) => {
|
||||
// Allow WebSocket requests to pass through to our mock
|
||||
if (request.url.includes('/ws')) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user