14 lines
409 B
Plaintext
14 lines
409 B
Plaintext
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();
|
|
});
|
|
});
|