File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ u-action // Redux action
52
52
u- it // Jest test `it`
53
53
u- desc // Jest test `describe`
54
54
u- suite // Jest test suite (including import statements)
55
+ u- afterEach // Jest afterEach function
56
+ u- beforeEach // Jest beforeEach function
55
57
```
56
58
57
59
## Installation
Original file line number Diff line number Diff line change 97
97
],
98
98
"description" : " Jest Test Suite"
99
99
},
100
+ "Jest afterEach" : {
101
+ "prefix" : " u-afterEach" ,
102
+ "body" : [
103
+ " afterEach(() => {" ,
104
+ " \t $1" ,
105
+ " });" ,
106
+ " "
107
+ ],
108
+ "description" : " Jest afterEach: Runs a function after each one of the tests in this file completes"
109
+ },
110
+ "Jest beforeEach" : {
111
+ "prefix" : " u-beforeEach" ,
112
+ "body" : [
113
+ " beforeEach(() => {" ,
114
+ " \t $1" ,
115
+ " });" ,
116
+ " "
117
+ ],
118
+ "description" : " Jest beforeEach: Runs a function before each of the tests in this file runs"
119
+ },
100
120
"PropTypes" : {
101
121
"prefix" : " u-pt" ,
102
122
"body" : [
You can’t perform that action at this time.
0 commit comments