Created
February 20, 2020 15:52
-
-
Save npretto/bf4f8737aadc4bf28b5c8c7a21799b04 to your computer and use it in GitHub Desktop.
vscode snippets for testID props
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "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