UNPKG
@seedneey/gint
Version:
latest (2.0.1)
2.0.1
2.0.0
1.0.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
creating a repo (in Github) for your project in one command
@seedneey/gint
/
templates
/
react
/
src
/
App.test.js
10 lines
(8 loc)
•
280 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
;
import
{ render }
from
'@testing-library/react'
;
import
App
from
'./App'
;
test
(
'renders learn react link'
,
() =>
{
const
{ getByText } =
render
(
<
App
/>
);
const
linkElement =
getByText
(
/learn react/i
);
expect
(linkElement).
toBeInTheDocument
(); });