Watch
1
0
Fork
You've already forked RedFlag
0

tests: drop unused React imports breaking tsc

This commit is contained in:
Fimeg 2026-06-12 13:41:11 -04:00
commit e0f2dd8b07
5 changed files with 1 additions and 8 deletions

View file

@ -1,4 +1,3 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { describe, it, expect, vi } from 'vitest';
import FilterBar from './FilterBar';
@ -139,9 +138,7 @@ describe('FilterBar', () => {
const { container } = render(
<FilterBar pills={[]} activeCount={0} />
);
// The whole pill section shouldn't render
const pills = container.querySelector('.flex-wrap');
// If pills/activeCount are both empty, the conditional is false
// If pills/activeCount are both empty, the pill section doesn't render
expect(container.querySelector('.flex-wrap.items-center.gap-1\\.5')).toBeNull();
});

View file

@ -1,4 +1,3 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

View file

@ -1,4 +1,3 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

View file

@ -1,4 +1,3 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

View file

@ -1,4 +1,3 @@
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';