Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Last active January 3, 2021 11:18
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 CodingItWrong/92a70defe27da29b4b41dc6315b54b89 to your computer and use it in GitHub Desktop.
Save CodingItWrong/92a70defe27da29b4b41dc6315b54b89 to your computer and use it in GitHub Desktop.
Jest Snippets for Atom
# 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