@selemondev/create-react-next
Version:
The Next Generation React Scaffolding Tool ✨
9 lines (8 loc) • 332 B
JSX
import { render } from '@testing-library/react';
import App from '../src/App';
import { it, expect } from "vitest";
it('renders the heading with the correct class', () => {
const { getByText } = render(<App />);
const headingElement = getByText('Welcome To Create React Next');
expect(headingElement).toBeInTheDocument();
});