feat(vim): add snippets for testing in lua and playwright

This commit is contained in:
Ade Attwood 2024-06-08 14:12:17 +01:00
parent 4b55548a96
commit f4d9e842ed
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# name: A test function
# description: A test function same as it but with test
# key: test
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: javascript,javascriptreact,typescript,typescriptreact
# --
test('${1}', () => {
${0}
});

View file

@ -0,0 +1,8 @@
# name: Lua test
# key: desc
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: lua
# --
describe("$1", function()
$0
end)

View file

@ -0,0 +1,8 @@
# name: Lua test
# key: it
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: lua
# --
it("$1", function()
$0
end)