Closed ahoseinian closed 7 years ago
How about leaving out the enzyme and react imports since those are react specific, and not mandatory for jest.
I am thinking something like
'jsetup':
description: 'Sets up jest test file'
prefix: 'jsetup'
body: """
import $1 from './$1'
describe('$1', () => {
test('$2', () => {
$3
})
})
"""
I would prefer this package to be as generic as possible, usable for any jest tests, not just for jest within a specific framework. If that sounds good to you, go ahead and send a pr.
yeah that seems perfect given that you want to keep this repo generic to jest. I will make a PR asap.
merged pr and released v1.0.2
I was wondering if you like the following snippet to be added to this repo and if I can make a PR for that?
we can change the prefix as you wish