front/__tests__/helloworld.test.tsx.no

14 lines
409 B
Plaintext
Raw Normal View History

2024-10-19 07:48:30 +03:00
import React from 'react';
import { render, screen } from '@testing-library/react';
describe('Hello World Test', () => {
it('should display hello world', () => {
// Render a simple component
render(<div>Hello World</div>);
// Check if "Hello World" is in the document
const helloWorldElement = screen.getByText(/hello world/i);
expect(helloWorldElement).toBeInTheDocument();
});
});