App.test.js 258 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 import React from 'react' import { render, screen } from '@testing-library/react' import App from './App' test('renders APP', () => { render(<App />) const linkElement = screen.getByText(/启动应用中/ig) expect(linkElement).toBeInTheDocument() })