Skip to content

Instantly share code, notes, and snippets.

@v19i
Last active September 6, 2021 10:11
Show Gist options
  • Save v19i/9476d09267884bd13f7776245817e611 to your computer and use it in GitHub Desktop.
Save v19i/9476d09267884bd13f7776245817e611 to your computer and use it in GitHub Desktop.
VSCode: JS/TS Snippets
"new empty lambda": {
"prefix": "nel",
"body": [
"($1) => {$2}"
],
"description": "creates a new empty lambda expression"
},
"new async empty lambda": {
"prefix": "nela",
"body": [
"async ($1) => {$2}"
],
"description": "creates a new async empty lambda expression"
},
"new test case": {
"prefix": "its",
"body": [
"it(\"should $1\", () => {$2});"
],
"description": "creates a new test case"
},
"new async test case": {
"prefix": "itsa",
"body": [
"it(\"should $1\", async () => {$2});"
],
"description": "creates a new async test case"
},
"new describe block": {
"prefix": "dsc",
"body": "describe(\"$1\", () => {$2});",
"description": "creates a new describe block"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment