From 5c90b00c8175ad315b1b3cd8a484cfeb11db9475 Mon Sep 17 00:00:00 2001 From: Robin Drexler Date: Wed, 15 Jun 2022 20:36:43 -0400 Subject: [PATCH] docs: add docs about defaultIgnore config --- docs/dom-testing-library/api-configuration.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/dom-testing-library/api-configuration.mdx b/docs/dom-testing-library/api-configuration.mdx index 98eee3e70..dbf13eaa2 100644 --- a/docs/dom-testing-library/api-configuration.mdx +++ b/docs/dom-testing-library/api-configuration.mdx @@ -80,6 +80,14 @@ with a second argument e.g. The default value for the `hidden` option used by [`getByRole`](queries/byrole.mdx). Defaults to `false`. +### `defaultIgnore` + +The default value for the [`ignore` option](queries/bytext.mdx#ignore) used by +[`getByText`](queries/bytext.mdx). Also determines the nodes that are being +ignored when errors are printed. + +Defaults to `script, style`. + ### `showOriginalStackTrace` By default, `waitFor` will ensure that the stack trace for errors thrown by