Skip to content

Commit

Permalink
fix(typescript): Fix test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 14, 2022
1 parent c819f72 commit c59aa16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion 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(<App />);
const linkElement = screen.getByText(/learn react/i);
// @ts-ignore
expect(linkElement).toBeInTheDocument();
});
1 change: 0 additions & 1 deletion 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';
Expand Down

0 comments on commit c59aa16

Please sign in to comment.