From 462723467d41e97a356dff5f30a19c914c0a8df9 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Tue, 5 May 2020 11:12:01 -0600 Subject: [PATCH] add config option --- docs/dom-testing-library/api-configuration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/dom-testing-library/api-configuration.md b/docs/dom-testing-library/api-configuration.md index 9bd93e47e..2abd43ead 100644 --- a/docs/dom-testing-library/api-configuration.md +++ b/docs/dom-testing-library/api-configuration.md @@ -18,6 +18,13 @@ Configuration options: `defaultHidden`: The default value for the `hidden` option used by [`getByRole`](api-queries#byrole). Defaults to `false`. +`showOriginalStackTrace`: By default, `waitFor` will ensure that the stack trace +for errors thrown by Testing Library is cleaned up and shortened so it's easier +for you to identify the part of your code that resulted in the error (async +stack traces are hard to debug). If you want to disable this, then set +`showOriginalStackTrace` to `false`. You can also disable this for a specific +call in the options you pass to `waitFor`. + `testIdAttribute`: The attribute used by [`getByTestId`](api-queries#bytestid) and related queries. Defaults to `data-testid`.