Skip to content

Commit d250e75

Browse files
docs: add docs about defaultIgnore config (#1088)
1 parent 51de304 commit d250e75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/dom-testing-library/api-configuration.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ with a second argument e.g.
8080
The default value for the `hidden` option used by
8181
[`getByRole`](queries/byrole.mdx). Defaults to `false`.
8282

83+
### `defaultIgnore`
84+
85+
The default value for the [`ignore` option](queries/bytext.mdx#ignore) used by
86+
[`getByText`](queries/bytext.mdx). Also determines the nodes that are being
87+
ignored when errors are printed.
88+
89+
Defaults to `script, style`.
90+
8391
### `showOriginalStackTrace`
8492

8593
By default, `waitFor` will ensure that the stack trace for errors thrown by

0 commit comments

Comments
 (0)