Created
March 22, 2018 18:05
-
-
Save maxfunke/cc5bcea5cb6d530d43b5f7b10f581f58 to your computer and use it in GitHub Desktop.
VSCode Snippets for Jest testing
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
{ | |
"jest_test_boilerplate": { | |
"prefix": "test_jest", | |
"body": [ | |
"test(\"$1\", ($2) => {", | |
"\t$3", | |
"});" | |
], | |
"description": "basic boilerplate for a jest test case" | |
}, | |
"jest_describe_boilerplate": { | |
"prefix": "describe_jest", | |
"body": [ | |
"describe(\"$1\", ($2) => {", | |
"\t$3", | |
"});" | |
], | |
"description": "basic boilerplate for a jest test suite (describe)" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment