File size: 560 Bytes
4e65e3f
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { render } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import GeometricBackground from './GeometricBackground';

describe('GeometricBackground', () => {
  it('renders without crashing when mounted', () => {
    const { container } = render(<GeometricBackground />);
    // The component uses useEffect to set mounted=true, so it might render null initially.
    // However, in tests without strict act() wrappers for the initial effect, it might return empty.
    expect(container).toBeDefined();
  });
});