App.test.tsx 293 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
import * as React from 'react';

import App from '../src/App';
import {render} from '@testing-library/react';

test('renders learn react link', () => {
    const {getByText} = render(<App />);
    const linkElement = getByText(/learn react/i);
    expect(linkElement).toBeInTheDocument();
});