Created
June 4, 2020 06:56
-
-
Save avilde/d7050f52e72406a2f121d36caca85b77 to your computer and use it in GitHub Desktop.
Create new test file for React functional component template
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
{ | |
"New Test React FC": { | |
"prefix": "ntfc", | |
"body": [ | |
"import React from 'react';", | |
"import { render } from '@testing-library/react';", | |
"import ${1} from './${1}';", | |
"", | |
"it ('${1} renders without crashing', () => {", | |
"\trender(", | |
"\t\t<${1} />", | |
"\t);", | |
"});" | |
], | |
"description": "Create new test file React functional component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment