Skip to content

Instantly share code, notes, and snippets.

@npretto
Created February 20, 2020 15:52
Show Gist options
  • Select an option

  • Save npretto/bf4f8737aadc4bf28b5c8c7a21799b04 to your computer and use it in GitHub Desktop.

Select an option

Save npretto/bf4f8737aadc4bf28b5c8c7a21799b04 to your computer and use it in GitHub Desktop.
vscode snippets for testID props
{
"testID interface props interface": {
"prefix": ["tii"], // [t]est [i]d [i]nterface
"body": ["testID?: string;"],
"description": "testID ts interface"
},
"testID prop forwarding": {
"prefix": ["tip"], // [t]est [i]d [p]rop
"body": ["testID={this.props.testID}"],
"description": "forward testID to element from props"
},
"testID prop string": {
"prefix": ["tis"], // [t]est [i]d [s]tring
"body": ["testID=\"$0\""],
"description": "testID prop as string"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment