Skip to content

Instantly share code, notes, and snippets.

@HarisSpahija
Last active November 1, 2018 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HarisSpahija/eaadfc94acca4ba2485d10dd35f14eb7 to your computer and use it in GitHub Desktop.
Save HarisSpahija/eaadfc94acca4ba2485d10dd35f14eb7 to your computer and use it in GitHub Desktop.
Quick Enzyme + Jest test snippet
{
"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