chore: Refactor tests to use findBy queries for better async handling, update mock implementations, and clean up imports across various test files. Adjust toast utility to use for-of loops for callback execution. Update Vite and Vitest configuration files for consistency.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useState } from 'react';
|
||||
import { formatDistanceToNow } from 'date-fns';
|
||||
import { Wifi, WifiOff, Activity, Clock, Filter, Globe } from 'lucide-react';
|
||||
import { useWebSocketConnections, useWebSocketStats } from '../hooks/useWebSocketStatus';
|
||||
import { useState } from 'react';
|
||||
|
||||
import {
|
||||
Card,
|
||||
CardHeader,
|
||||
@@ -11,7 +12,8 @@ import {
|
||||
Skeleton,
|
||||
Alert,
|
||||
} from './ui';
|
||||
import { formatDistanceToNow } from 'date-fns';
|
||||
import { useWebSocketConnections, useWebSocketStats } from '../hooks/useWebSocketStatus';
|
||||
|
||||
|
||||
interface WebSocketStatusCardProps {
|
||||
className?: string;
|
||||
|
||||
Reference in New Issue
Block a user