UNPKG
crcf2
Version:
latest (0.5.0)
2.0.1
0.5.0
0.4.0
0.3.0
0.2.0
0.1.26
Creates single react component folder structure
crcf2
/
examples
/
NormalComp
/
NormalComp.test.js
11 lines
(9 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
React
from
'react'
;
import
{ shallow }
from
'enzyme'
;
import
NormalComp
from
'./NormalComp'
;
describe
(
'<NormalComp />'
,
() =>
{
test
(
'renders'
,
() =>
{
const
wrapper =
shallow
(
<
NormalComp
/>
);
expect
(wrapper).
toMatchSnapshot
(); }); });