Last active
January 3, 2021 11:18
-
-
Save CodingItWrong/92a70defe27da29b4b41dc6315b54b89 to your computer and use it in GitHub Desktop.
Jest Snippets for Atom
This file contains 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
# http://bit.ly/jest-snippets | |
'.source.js': | |
'Jest Async Test': | |
'prefix': 'jitasync' | |
'body': """ | |
it('$1', async () => { | |
$2 | |
}); | |
""" | |
'Jest Describe': | |
'prefix': 'jdescribe' | |
'body': """ | |
describe('$1', () => { | |
$2 | |
}); | |
""" | |
'Jest Expect': | |
'prefix': 'jexpect' | |
'body': 'expect($1).$2;' | |
'Jest Test': | |
'prefix': 'jit' | |
'body': """ | |
it('$1', () => { | |
$2 | |
}); | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment