Skip to content

Commit

Permalink
docs: added vscode snippets for playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidseow committed Jun 23, 2021
1 parent fc0bf17 commit 8a0ffe6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .vscode/jest.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Jest - beforeAll": {
"prefix": "jbefore",
"body": ["beforeAll(async () => {", " $2// setup", "});"]
},
"Jest - it": {
"prefix": "jit",
"body": ["it('$1', () => {", " $2// test code", "});"]
}
}
8 changes: 4 additions & 4 deletions .vscode/playwright.code-snippets
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Jest - it block": {
"prefix": "jit",
"body": ["it('$1', () => {", " $2// test code", "});"]
"Playwright - beforeEach": {
"prefix": "pbefore",
"body": ["beforeEach(async ({ page }) => {", " $2// setup", "});"]
},
"Playwright - test block": {
"Playwright - test": {
"prefix": "ptest",
"body": ["test('$1', async ({ page }) => {", " $2// test code", "});"]
}
Expand Down

0 comments on commit 8a0ffe6

Please sign in to comment.