Skip to content

Commit

Permalink
Merge pull request #16 from deinsoftware/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
equiman authored Apr 21, 2023
2 parents 02dddb0 + a4f4826 commit 6282a3a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: Eomm/why-don-t-you-tweet@v1
if: ${{ !github.event.repository.private }}
with:
tweet-message: "Extension for @code with testging library snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
tweet-message: "Extension for @code with testing library snippets ${{ github.event.release.tag_name }} 🐛🔨 is here 🥳\n\n
$ ext install deinsoftware.testing-library-snippets\n\n
#vscode #snippets #javascript #testing-library\n\n
https://marketplace.visualstudio.com/items?itemName=deinsoftware.testing-library-snippets"
Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"itue",
"matc",
"paypal",
"qidf",
"qids",
"qlsq",
"qrc",
"qrcc",
Expand All @@ -20,11 +22,16 @@
"qtew",
"qtf",
"qti",
"qtid",
"qtidf",
"qtids",
"qtif",
"qtis",
"qts",
"qtsi",
"qtsw",
"qttf",
"qtts",
"rewi",
"rswi",
"sltp",
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ All the `░variantBy` cursor start with `getBy` by default, but can be easily c

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

#### 9. TestId

| Trigger | Result |
| :------- | -------------------------------------------------------- |
| `qti` | `screen.░variantByTestId(░)█` |
| `qtif` | `screen.░variantByTestId('░Text Match')█` |
| `qtis` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |
| `qid` | `screen.░variantByTestId(░)█` |
| `qidf` | `screen.░variantByTestId('░Text Match')█` |
| `qids` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |

### Debug

Expand Down
12 changes: 6 additions & 6 deletions snippets/queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,43 +222,43 @@
},

"query.Title": {
"prefix": "qt",
"prefix": "qtt",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title($2)$0"
],
"description": "Title query"
},
"query.Title.full": {
"prefix": "qtf",
"prefix": "qttf",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title('${2:Text Match}')$0"
],
"description": "Title query full string match"
},
"query.Title.substring": {
"prefix": "qts",
"prefix": "qtts",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Title('${2:ext Matc}', {exact: false})$0"
],
"description": "Title query substring match"
},

"query.TestId": {
"prefix": "qti",
"prefix": "qid",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId($2)$0"
],
"description": "TestId query"
},
"query.TestId.full": {
"prefix": "qtif",
"prefix": "qidf",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:Text Match}')$0"
],
"description": "TestId query full string match"
},
"query.TestId.substring": {
"prefix": "qtis",
"prefix": "qids",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:ext Matc}', {exact: false})$0"
],
Expand Down

0 comments on commit 6282a3a

Please sign in to comment.