Skip to content

Commit 1fbc3fe

Browse files
committed
add query types
1 parent a19270b commit 1fbc3fe

File tree

4 files changed

+18
-13
lines changed

4 files changed

+18
-13
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- uses: Eomm/why-don-t-you-tweet@v1
4040
if: ${{ !github.event.repository.private }}
4141
with:
42-
tweet-message: "Extension for @code with testging library snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
42+
tweet-message: "Extension for @code with testing library snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
4343
$ ext install deinsoftware.testing-library-snippets\n\n
4444
#vscode #snippets #javascript #testing-library\n\n
4545
https://marketplace.visualstudio.com/items?itemName=deinsoftware.testing-library-snippets"

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@
2020
"qtew",
2121
"qtf",
2222
"qti",
23+
"qtid",
24+
"qtidf",
25+
"qtids",
2326
"qtif",
2427
"qtis",
2528
"qts",
2629
"qtsi",
2730
"qtsw",
31+
"qttf",
32+
"qtts",
2833
"rewi",
2934
"rswi",
3035
"sltp",

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,17 @@ All the `░variantBy` cursor start with `getBy` by default, but can be easily c
208208

209209
| Trigger | Result |
210210
| :------- | ------------------------------------------------------- |
211-
| `qt→` | `screen.░variantByTitle(░)█` |
212-
| `qtf→` | `screen.░variantByTitle('░Text Match')█` |
213-
| `qts→` | `screen.░variantByTitle('░ext Matc', {exact: false})█` |
211+
| `qtt→` | `screen.░variantByTitle(░)█` |
212+
| `qttf→` | `screen.░variantByTitle('░Text Match')█` |
213+
| `qtts→` | `screen.░variantByTitle('░ext Matc', {exact: false})█` |
214214

215215
#### 9. TestId
216216

217217
| Trigger | Result |
218218
| :------- | -------------------------------------------------------- |
219-
| `qti→` | `screen.░variantByTestId(░)█` |
220-
| `qtif→` | `screen.░variantByTestId('░Text Match')█` |
221-
| `qtis→` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |
219+
| `qtid→` | `screen.░variantByTestId(░)█` |
220+
| `qtidf→` | `screen.░variantByTestId('░Text Match')█` |
221+
| `qtids→` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |
222222

223223
### Debug
224224

snippets/queries.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -222,43 +222,43 @@
222222
},
223223

224224
"query.Title": {
225-
"prefix": "qt",
225+
"prefix": "qtt",
226226
"body": [
227227
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title($2)$0"
228228
],
229229
"description": "Title query"
230230
},
231231
"query.Title.full": {
232-
"prefix": "qtf",
232+
"prefix": "qttf",
233233
"body": [
234234
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title('${2:Text Match}')$0"
235235
],
236236
"description": "Title query full string match"
237237
},
238238
"query.Title.substring": {
239-
"prefix": "qts",
239+
"prefix": "qtts",
240240
"body": [
241241
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title('${2:ext Matc}', {exact: false})$0"
242242
],
243243
"description": "Title query substring match"
244244
},
245245

246246
"query.TestId": {
247-
"prefix": "qti",
247+
"prefix": "qtid",
248248
"body": [
249249
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId($2)$0"
250250
],
251251
"description": "TestId query"
252252
},
253253
"query.TestId.full": {
254-
"prefix": "qtif",
254+
"prefix": "qtidf",
255255
"body": [
256256
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:Text Match}')$0"
257257
],
258258
"description": "TestId query full string match"
259259
},
260260
"query.TestId.substring": {
261-
"prefix": "qtis",
261+
"prefix": "qtids",
262262
"body": [
263263
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:ext Matc}', {exact: false})$0"
264264
],

0 commit comments

Comments
 (0)