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
5252u- it // Jest test `it`
5353u- desc // Jest test `describe`
5454u- suite // Jest test suite (including import statements)
55+ u- afterEach // Jest afterEach function
56+ u- beforeEach // Jest beforeEach function
5557```
5658
5759## Installation
Original file line number Diff line number Diff line change 9797 ],
9898 "description" : " Jest Test Suite"
9999 },
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+ },
100120 "PropTypes" : {
101121 "prefix" : " u-pt" ,
102122 "body" : [
You can’t perform that action at this time.
0 commit comments