feat(vim): add a couple of snippets for writing jest tests

This commit is contained in:
Ade Attwood 2024-01-05 19:43:15 +00:00
parent a36b52c5c4
commit 54bedf5588
2 changed files with 16 additions and 0 deletions

View file

@ -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}
});

View file

@ -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}
});