Skip to content

fix: Wrong parenthesis placement in Vitest snippets #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions snippets/vitest/vitest.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,54 @@
"Vitest Describe": {
"prefix": "videscribe",
"body": [
"describe('${1:name}'), () => {",
"describe('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Describe"
},
"Vitest Describe - Concurrent": {
"prefix": "videscribe-concurrent",
"body": [
"describe.concurrent('${1:name}'), () => {",
"describe.concurrent('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Describe Concurrent"
},
"Vitest It": {
"prefix": "viit",
"body": [
"it('${1:name}'), () => {",
"it('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest It"
},
"Vitest It - Concurrent": {
"prefix": "viit-concurrent",
"body": [
"it.concurrent('${1:name}'), () => {",
"it.concurrent('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest It Concurrent"
},
"Vitest It - Async": {
"prefix": "viit-async",
"body": [
"it('${1:name}'), async () => {",
"it('${1:name}', async () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest It Async"
},
"Vitest It - Async Concurrent": {
"prefix": "viit-async-concurrent",
"body": [
"it.concurrent('${1:name}'), async () => {",
"it.concurrent('${1:name}', async () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest It Async Concurrent"
},
Expand All @@ -74,36 +74,36 @@
"Vitest Test": {
"prefix": "vitest",
"body": [
"test('${1:name}'), () => {",
"test('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Test"
},
"Vitest Test - Concurrent": {
"prefix": "vitest-concurrent",
"body": [
"test.concurrent('${1:name}'), () => {",
"test.concurrent('${1:name}', () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Test Concurrent"
},
"Vitest Test - Async": {
"prefix": "vitest-async",
"body": [
"test('${1:name}'), async () => {",
"test('${1:name}', async () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Test Async"
},
"Vitest Test - Async Concurrent": {
"prefix": "vitest-async-concurrent",
"body": [
"test.concurrent('${1:name}'), async () => {",
"test.concurrent('${1:name}', async () => {",
"\t${0}",
"}"
"})"
],
"description": "Vitest Test Async Concurrent"
},
Expand Down