Skip to content

Instantly share code, notes, and snippets.

@mayronceccon
Created March 24, 2021 22:30
Show Gist options
  • Select an option

  • Save mayronceccon/bc7513c36d58719cf5e27e22631c9588 to your computer and use it in GitHub Desktop.

Select an option

Save mayronceccon/bc7513c36d58719cf5e27e22631c9588 to your computer and use it in GitHub Desktop.
{
"jest-full": {
"scope": "javascript,typescript",
"prefix": "jest-full",
"body": [
"describe( 'Tests for \"$1\" class', () => {",
" describe( 'Tests for the \"$2\" method', () => {",
" it ( 'SHOULD return \"$3\" WHEN \"$4\"', () => {",
" // TODO",
" expect(true).toBeTruthy()",
" } )",
" } )",
"} )",
],
"description": "jest-full"
},
"jest-describe-class": {
"scope": "javascript,typescript",
"prefix": "jest-describe-class",
"body": [
"describe( 'Tests for \"$1\" class', () => {",
" // TODO",
"} )",
],
"description": "jest-describe-class"
},
"jest-describe-method": {
"scope": "javascript,typescript",
"prefix": "jest-describe-method",
"body": [
"describe( 'Tests for the \"$1\" method', () => {",
" // TODO",
"} )",
],
"description": "jest-describe-method"
},
"jest-it": {
"scope": "javascript,typescript",
"prefix": "jest-it",
"body": [
"it ( 'SHOULD return \"$1\" WHEN \"$2\"', () => {",
" // TODO",
" expect(true).toBeTruthy()",
"} )",
],
"description": "jest-it"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment