You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/prefer-implicit-assert.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
<!-- end auto-generated rule header -->
4
4
5
5
Testing Library `getBy*` & `findBy*` queries throw an error if the element is not
6
-
found. Therefore it is not necessary to also assert existance with things like `expect(getBy*.toBeInTheDocument()` or `expect(awaint findBy*).not.toBeNull()`
6
+
found. Therefore it is not necessary to also assert existence with things like `expect(getBy*.toBeInTheDocument()` or `expect(await findBy*).not.toBeNull()`
7
7
8
8
## Rule Details
9
9
10
-
This rule aims to reuduce uncecessary assertion's for presense of an element,
10
+
This rule aims to reduce unnecessary assertion's for presence of an element,
11
11
when using queries that implicitly fail when said element is not found.
12
12
13
13
Examples of **incorrect** code for this rule with the default configuration:
0 commit comments