Last active
November 1, 2018 19:18
-
-
Save HarisSpahija/eaadfc94acca4ba2485d10dd35f14eb7 to your computer and use it in GitHub Desktop.
Quick Enzyme + Jest test snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"Test Component": { | |
"scope": "javascript", | |
"prefix": "testit", | |
"body": [ | |
"it('$1', () => {", | |
"\t\/\/ Create", | |
"\tconst component = $2($3);", | |
"\t ", | |
"\t\/\/ Check", | |
"\texpect(component$4)", | |
"\t", | |
"\t\/\/ Clear", | |
"\t", | |
"})" | |
], | |
"description": "Test it" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment