feat(vim): add a couple of snippets for writing jest tests
This commit is contained in:
parent
a36b52c5c4
commit
54bedf5588
2 changed files with 16 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
||||||
|
# name: Before each test function
|
||||||
|
# key: be
|
||||||
|
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||||
|
# filetypes: javascript,javascriptreact,typescript,typescriptreact
|
||||||
|
# --
|
||||||
|
beforeEach(${1:async }() => {
|
||||||
|
${0}
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# name: Describe test function
|
||||||
|
# key: desc
|
||||||
|
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||||
|
# filetypes: javascript,javascriptreact,typescript,typescriptreact
|
||||||
|
# --
|
||||||
|
describe('${1}', () => {
|
||||||
|
${0}
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue