diff --git a/.vscode/settings.json b/.vscode/settings.json
index feeabad..ac9aab1 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -9,6 +9,7 @@
"tbct",
"tbgt",
"tbgte",
+ "tbid",
"tblt",
"tblte",
"thbc",
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 911a9f6..96cf041 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,12 @@ Fixed for any bug fixes.
Security to invite users to upgrade in case of vulnerabilities.
-->
+## 1.4.0 - 2023/03/31
+
+### Added
+
+- `toBeInTheDocument` assertion
+
## 1.3.0 - 2023/03/31
### Added
diff --git a/README.md b/README.md
index 3aeb09e..d533f0b 100644
--- a/README.md
+++ b/README.md
@@ -153,20 +153,21 @@ Below is a list of all available snippets and the triggers of each one. The `░
| --------: | ------------------------------------------------------------------------------------------- |
| `tb→` | `expect(░).toBe(░)█` |
| `tbct→` | `expect(░).toBeCloseTo(░number, ░delta)█` |
-| `tbd→` | `expect(░).toBeDefined()█` |
-| `tbf→` | `expect(░).toBeFalsy()█` |
+| `tbd→` | `expect(░).toBeDefined()█` |
+| `tbf→` | `expect(░).toBeFalsy()█` |
| `tbgt→` | `expect(░).toBeGreaterThan(░)█` |
| `tbgte→` | `expect(░).toBeGreaterThanOrEqual(░)█` |
+| `tbid→` | `expect(░).toBeInTheDocument()█` |
| `tbi→` | `expect(░).toBeInstanceOf(░)█` |
| `tblt→` | `expect(░).toBeLessThan(░)█` |
| `tblte→` | `expect(░).toBeLessThanOrEqual(░)█` |
-| `tbn→` | `expect(░).toBeNull()█` |
-| `tbt→` | `expect(░).toBeTruthy()█` |
-| `tbu→` | `expect(░).toBeUndefined()█` |
+| `tbn→` | `expect(░).toBeNull()█` |
+| `tbt→` | `expect(░).toBeTruthy()█` |
+| `tbu→` | `expect(░).toBeUndefined()█` |
| `tc→` | `expect(░list).toContain(░)█` |
| `tce→` | `expect(░list).toContainEqual(░)█` |
| `te→` | `expect(░).toEqual(░)█` |
-| `thbc→` | `expect(░).toHaveBeenCalled()█` |
+| `thbc→` | `expect(░).toHaveBeenCalled()█` |
| `thbct→` | `expect(░).toHaveBeenCalledTimes(░)█` |
| `thbcw→` | `expect(░).toHaveBeenCalledWith(░)█` |
| `thblcw→` | `expect(░).toHaveBeenLastCalledWith(░)█` |
@@ -178,8 +179,8 @@ Below is a list of all available snippets and the triggers of each one. The `░
| `tse→` | `expect(░).toStrictEqual(░)█` |
| `tt→` | expect(() => {
█
}).toThrow(░)
|
| `tte→` | expect(() => {
█
}).toThrowError(░)
|
-| `ttemis→` | expect(() => {
█
}).toThrowErrorMatchingInlineSnapshot()
|
-| `ttems→` | expect(() => {
█
}).toThrowErrorMatchingSnapshot()
|
+| `ttemis→` | expect(() => {
█
}).toThrowErrorMatchingInlineSnapshot()
|
+| `ttems→` | expect(() => {
█
}).toThrowErrorMatchingSnapshot()
|
⇧ [Back to menu](#menu)
diff --git a/package.json b/package.json
index 6fe4c75..1496a40 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vitest-snippets",
"description": "VS Code Vitest snippets for JS and TS",
- "version": "1.3.0",
+ "version": "1.4.0",
"displayName": "Vitest Snippets",
"publisher": "deinsoftware",
"icon": "images/light-icon.png",
diff --git a/snippets/assertion.json b/snippets/assertion.json
index b12d90e..5e0afa0 100644
--- a/snippets/assertion.json
+++ b/snippets/assertion.json
@@ -29,6 +29,11 @@
"body": "expect($1).toBeGreaterThanOrEqual($2)$0",
"description": "expects the argument is greater than"
},
+ "toBeInTheDocument": {
+ "prefix": "tbid",
+ "body": "expect($1).toBeInTheDocument()$0",
+ "description": "expects the argument to be in the document"
+ },
"toBeInstanceOf": {
"prefix": "tbi",
"body": "expect($1).toBeInstanceOf($2)$0",