From c59aa16058240040701a45e6a97478826f16a06f Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Wed, 15 Jun 2022 01:56:29 +0800 Subject: [PATCH] fix(typescript): Fix test case. --- example/typescript/src/app/App.test.tsx | 2 +- example/typescript/src/index.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/example/typescript/src/app/App.test.tsx b/example/typescript/src/app/App.test.tsx index 68cf47a0..192e3ae4 100644 --- a/example/typescript/src/app/App.test.tsx +++ b/example/typescript/src/app/App.test.tsx @@ -1,9 +1,9 @@ +import '@testing-library/jest-dom'; import { render, screen } from '@testing-library/react'; import App from './App'; test('renders learn react link', () => { render(); const linkElement = screen.getByText(/learn react/i); - // @ts-ignore expect(linkElement).toBeInTheDocument(); }); diff --git a/example/typescript/src/index.tsx b/example/typescript/src/index.tsx index 3ca58845..b4b6bb23 100644 --- a/example/typescript/src/index.tsx +++ b/example/typescript/src/index.tsx @@ -1,4 +1,3 @@ -import ReactDOM from 'react-dom'; import App from './app/App'; import './index.css'; import reportWebVitals from './reportWebVitals';