Skip to content

Instantly share code, notes, and snippets.

@alexandr-g
Last active June 28, 2018 13:26
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 alexandr-g/5619bb9169965253fcaf3f57efd70c59 to your computer and use it in GitHub Desktop.
Save alexandr-g/5619bb9169965253fcaf3f57efd70c59 to your computer and use it in GitHub Desktop.
VSCode user snippets
{
"print to console": {
"prefix": "cl",
"body": [
"console.log('--->', $1)"
],
"description": "Log output to console"
},
"import React": {
"prefix": "imr",
"body": "import React from 'react'"
},
"describe": {
"prefix": "desc",
"body": [
"describe('$1', () => {it('should ', () => {})})"
],
"description": "create new test suite"
},
"new test case": {
"prefix": "it",
"body": [
"it('should $1', () => {})"
],
"description": "create new test case"
},
"mount from enzyme": {
"prefix": "mnt",
"body": "import { mount } from 'enzyme'",
"description": "import mount from enzyme"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment