|
| 1 | +{ |
| 2 | + "Vitest Config - Vue 3": { |
| 3 | + "prefix": "viconfig", |
| 4 | + "body": [ |
| 5 | + "import { defineConfig } from 'vitest/config'", |
| 6 | + "", |
| 7 | + "export default defineConfig({", |
| 8 | + "\t${0}", |
| 9 | + "})" |
| 10 | + ], |
| 11 | + "description": "Vitest config for Vue 3" |
| 12 | + }, |
| 13 | + "Vitest Describe": { |
| 14 | + "prefix": "videscribe", |
| 15 | + "body": [ |
| 16 | + "describe('${1:name}'), () => {", |
| 17 | + "\t${0}", |
| 18 | + "}" |
| 19 | + ], |
| 20 | + "description": "Vitest Describe" |
| 21 | + }, |
| 22 | + "Vitest Describe - Concurrent": { |
| 23 | + "prefix": "videscribe-concurrent", |
| 24 | + "body": [ |
| 25 | + "describe.concurrent('${1:name}'), () => {", |
| 26 | + "\t${0}", |
| 27 | + "}" |
| 28 | + ], |
| 29 | + "description": "Vitest Describe Concurrent" |
| 30 | + }, |
| 31 | + "Vitest It": { |
| 32 | + "prefix": "viit", |
| 33 | + "body": [ |
| 34 | + "it('${1:name}'), () => {", |
| 35 | + "\t${0}", |
| 36 | + "}" |
| 37 | + ], |
| 38 | + "description": "Vitest It" |
| 39 | + }, |
| 40 | + "Vitest It - Concurrent": { |
| 41 | + "prefix": "viit-concurrent", |
| 42 | + "body": [ |
| 43 | + "it.concurrent('${1:name}'), () => {", |
| 44 | + "\t${0}", |
| 45 | + "}" |
| 46 | + ], |
| 47 | + "description": "Vitest It Concurrent" |
| 48 | + }, |
| 49 | + "Vitest It - Async": { |
| 50 | + "prefix": "viit-async", |
| 51 | + "body": [ |
| 52 | + "it('${1:name}'), async () => {", |
| 53 | + "\t${0}", |
| 54 | + "}" |
| 55 | + ], |
| 56 | + "description": "Vitest It Async" |
| 57 | + }, |
| 58 | + "Vitest It - Async Concurrent": { |
| 59 | + "prefix": "viit-async-concurrent", |
| 60 | + "body": [ |
| 61 | + "it.concurrent('${1:name}'), async () => {", |
| 62 | + "\t${0}", |
| 63 | + "}" |
| 64 | + ], |
| 65 | + "description": "Vitest It Async Concurrent" |
| 66 | + }, |
| 67 | + "Vitest It - Todo": { |
| 68 | + "prefix": "viit-todo", |
| 69 | + "body": [ |
| 70 | + "it.todo('${1:name}')" |
| 71 | + ], |
| 72 | + "description": "Vitest It Todo" |
| 73 | + }, |
| 74 | + "Vitest Test": { |
| 75 | + "prefix": "vitest", |
| 76 | + "body": [ |
| 77 | + "test('${1:name}'), () => {", |
| 78 | + "\t${0}", |
| 79 | + "}" |
| 80 | + ], |
| 81 | + "description": "Vitest Test" |
| 82 | + }, |
| 83 | + "Vitest Test - Concurrent": { |
| 84 | + "prefix": "vitest-concurrent", |
| 85 | + "body": [ |
| 86 | + "test.concurrent('${1:name}'), () => {", |
| 87 | + "\t${0}", |
| 88 | + "}" |
| 89 | + ], |
| 90 | + "description": "Vitest Test Concurrent" |
| 91 | + }, |
| 92 | + "Vitest Test - Async": { |
| 93 | + "prefix": "vitest-async", |
| 94 | + "body": [ |
| 95 | + "test('${1:name}'), async () => {", |
| 96 | + "\t${0}", |
| 97 | + "}" |
| 98 | + ], |
| 99 | + "description": "Vitest Test Async" |
| 100 | + }, |
| 101 | + "Vitest Test - Async Concurrent": { |
| 102 | + "prefix": "vitest-async-concurrent", |
| 103 | + "body": [ |
| 104 | + "test.concurrent('${1:name}'), async () => {", |
| 105 | + "\t${0}", |
| 106 | + "}" |
| 107 | + ], |
| 108 | + "description": "Vitest Test Async Concurrent" |
| 109 | + }, |
| 110 | + "Vitest Test - Todo": { |
| 111 | + "prefix": "vitest-todo", |
| 112 | + "body": [ |
| 113 | + "test.todo('${1:name}')" |
| 114 | + ], |
| 115 | + "description": "Vitest Test Todo" |
| 116 | + }, |
| 117 | + "Vitest Match Snapshot": { |
| 118 | + "prefix": "visnapshot", |
| 119 | + "body": [ |
| 120 | + "expect(${0}).toMatchSnapshot()" |
| 121 | + ], |
| 122 | + "description": "Vitest Match Snapshot" |
| 123 | + }, |
| 124 | + "Vitest Match Snapshot - Inline": { |
| 125 | + "prefix": "visnapshot-inline", |
| 126 | + "body": [ |
| 127 | + "expect(${0}).toMatchInlineSnapshot()" |
| 128 | + ], |
| 129 | + "description": "Vitest Match Inline Snapshot" |
| 130 | + }, |
| 131 | +} |
0 commit comments