tests: drop unused React imports breaking tsc
This commit is contained in:
parent
415f229b8f
commit
e0f2dd8b07
5 changed files with 1 additions and 8 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue