parent
							
								
									5abc69f704
								
							
						
					
					
						commit
						570ed28253
					
				
				 8 changed files with 14 additions and 60 deletions
			
			
		| @ -1,8 +0,0 @@ | ||||
| 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); | ||||
|   expect(linkElement).toBeInTheDocument(); | ||||
| }); | ||||
| @ -1,13 +0,0 @@ | ||||
| body { | ||||
|   margin: 0; | ||||
|   font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', | ||||
|     'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', | ||||
|     sans-serif; | ||||
|   -webkit-font-smoothing: antialiased; | ||||
|   -moz-osx-font-smoothing: grayscale; | ||||
| } | ||||
| 
 | ||||
| code { | ||||
|   font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', | ||||
|     monospace; | ||||
| } | ||||
| @ -1,13 +0,0 @@ | ||||
| const reportWebVitals = onPerfEntry => { | ||||
|   if (onPerfEntry && onPerfEntry instanceof Function) { | ||||
|     import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { | ||||
|       getCLS(onPerfEntry); | ||||
|       getFID(onPerfEntry); | ||||
|       getFCP(onPerfEntry); | ||||
|       getLCP(onPerfEntry); | ||||
|       getTTFB(onPerfEntry); | ||||
|     }); | ||||
|   } | ||||
| }; | ||||
| 
 | ||||
| export default reportWebVitals; | ||||
| @ -1,5 +0,0 @@ | ||||
| // jest-dom adds custom jest matchers for asserting on DOM nodes.
 | ||||
| // allows you to do things like:
 | ||||
| // expect(element).toHaveTextContent(/react/i)
 | ||||
| // learn more: https://github.com/testing-library/jest-dom
 | ||||
| import '@testing-library/jest-dom'; | ||||
| @ -0,0 +1,11 @@ | ||||
| import React, { Component } from 'react'; | ||||
| 
 | ||||
| export default class Home extends Component { | ||||
|   render(){ | ||||
|     return ( | ||||
|       <div className="home d-flex"> | ||||
|         
 | ||||
|       </div> | ||||
|     ); | ||||
|   } | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue