UNPKG

@chakra-xui/cra-template

Version:

The official Chakra+JavaScript template for Create React App

11 lines (9 loc) 305 B
import React from 'react'; import { screen } from '@testing-library/react'; import { render } from './test-utils'; import App from './App'; test('renders learn react link', () => { render(<App />); const linkElement = screen.getByText(/learn chakra/i); expect(linkElement).toBeInTheDocument(); });