Skip to content

Commit 52f2a8a

Browse files
authored
Merge pull request #10 from deinsoftware/dev
removed testing library snippets
2 parents 47cf213 + 6ab8e99 commit 52f2a8a

File tree

7 files changed

+17
-28
lines changed

7 files changed

+17
-28
lines changed

.github/social/preview.png

-1.28 KB
Loading

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ Fixed for any bug fixes.
99
Security to invite users to upgrade in case of vulnerabilities.
1010
-->
1111

12+
## 1.5.0 - 2023/04/03
13+
14+
### Added
15+
16+
- Alias for `it` and `desc`
17+
18+
### Removed
19+
20+
- removed all the Testing Library snippets to a new extension (WIP)
21+
1222
## 1.4.1 - 2023/04/03
1323

1424
### Fixed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ Below is a list of all available snippets and the triggers of each one. The `░
7979
| Trigger | Result |
8080
| -------: | ----------------------------------------------------------------- |
8181
| `iv→` | `import { it, expect, describe } from 'vitest'█` |
82-
| `itl→` | `import { render, screen } from '@testing-library/░<react\|vue>█` |
83-
| `itr→` | `import { render, screen } from '@testing-library/react█` |
84-
| `itv→` | `import { render, screen } from '@testing-library/vue█` |
8582

8683
### Setup
8784

@@ -99,6 +96,7 @@ Below is a list of all available snippets and the triggers of each one. The `░
9996
| Trigger | Result |
10097
| -------: | ---------------------------------------------------------------------- |
10198
| `d→` | <code>describe('░group', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
99+
| `desc→` | <code>describe('░group', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
102100
| `do→` | <code>describe.only('░group', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
103101
| `ds→` | <code>describe.skip('░group', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
104102

@@ -122,9 +120,10 @@ Below is a list of all available snippets and the triggers of each one. The `░
122120
| Trigger | Result |
123121
| -------: | ------------------------------------------------------------------ |
124122
| `i→` | <code>it('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
123+
| `it→` | <code>it('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
125124
| `io→` | <code>it.only('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
126125
| `is→` | <code>it.skip('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
127-
| `it` | `it.todo('░should')█` |
126+
| `itd` | `it.todo('░should')█` |
128127
| `ia→` | <code>it('░should', async () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
129128

130129
### Test
@@ -134,7 +133,7 @@ Below is a list of all available snippets and the triggers of each one. The `░
134133
| `t→` | <code>test('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
135134
| `to→` | <code>test.only('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
136135
| `ts→` | <code>test.skip('░should', () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
137-
| `tt` | `test.todo('░should')█` |
136+
| `ttd` | `test.todo('░should')█` |
138137
| `ta→` | <code>test('░should', async () => {<br/>&nbsp;&nbsp;█<br/>})</code> |
139138

140139
### Expect

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vitest-snippets",
33
"description": "VS Code Vitest snippets for JS and TS",
4-
"version": "1.4.1",
4+
"version": "1.5.0",
55
"displayName": "Vitest Snippets",
66
"publisher": "deinsoftware",
77
"icon": "images/light-icon.png",

snippets/describe.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"describe": {
3-
"prefix": "d",
3+
"prefix": ["d", "desc"],
44
"body": "describe('${1:group}', () => {\n\t$0\n})",
55
"description": "creates a describe block"
66
},

snippets/import.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,5 @@
33
"prefix": "iv",
44
"body": "import { it, expect, describe } from 'vitest'$0",
55
"description": "essential imports for vitest"
6-
},
7-
"import.testing-library": {
8-
"prefix": "itl",
9-
"body": "import { render, screen } from '@testing-library/${1|react,vue|}'$0",
10-
"description": "essential imports for testing-library"
11-
},
12-
"import.testing-library.react": {
13-
"prefix": "itr",
14-
"body": "import { render, screen } from '@testing-library/react'$0",
15-
"description": "essential imports for testing-library"
16-
},
17-
"import.testing-library.vue": {
18-
"prefix": "itv",
19-
"body": "import { render, screen } from '@testing-library/vue'$0",
20-
"description": "essential imports for testing-library"
21-
},
22-
"import.testing-library.user-event": {
23-
"prefix": "itu",
24-
"body": "import user from '@testing-library/user-event'$0",
25-
"description": "imports user-event for testing-library"
266
}
277
}

snippets/it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"it": {
3-
"prefix": "i",
3+
"prefix": ["i", "it"],
44
"body": "it('${1:should}', () => {\n\t$0\n})",
55
"description": "creates an it block"
66
},

0 commit comments

Comments
 (0)