File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 20
20
"build" : " react-scripts build" ,
21
21
"test" : " react-scripts test" ,
22
22
"test:cov" : " react-scripts test --coverage --watchAll" ,
23
+ "test:json" : " react-scripts test --json --watchAll=false --outputFile jest-output.json --coverage" ,
23
24
"eject" : " react-scripts eject" ,
24
25
"lint" : " eslint ./src --ext .tsx --ext .ts --max-warnings 0" ,
25
26
"eslint-output" : " eslint-output ./src --ext .tsx --ext .ts --max-warnings 0" ,
Original file line number Diff line number Diff line change
1
+ # Task - First Branch
2
+
3
+ Version: 0.0.1
4
+
5
+ Pass a short test to have certain text on the page.
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { render , screen } from "@testing-library/react" ;
3
+ import App from "./App" ;
4
+
5
+ test ( "renders the text 'Hello World' somewhere" , ( ) => {
6
+ render ( < App /> ) ;
7
+ const texts = screen . getAllByText ( / H e l l o W o r l d / ) ;
8
+ expect ( texts . length ) . toBeGreaterThanOrEqual ( 1 ) ;
9
+ } ) ;
You can’t perform that action at this time.
0 commit comments