2024-11-12 04:13:52 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
|
|
import App from './App';
|
|
|
|
|
|
|
|
test('renders learn react link', () => {
|
2024-11-19 01:52:04 +00:00
|
|
|
// render(<App />);
|
2024-11-12 04:13:52 +00:00
|
|
|
const linkElement = screen.getByText(/learn react/i);
|
|
|
|
expect(linkElement).toBeInTheDocument();
|
|
|
|
});
|