Skip to content

Commit ea15db8

Browse files
authored
add config option (#457)
1 parent 1907b78 commit ea15db8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Configuration options:
1818
`defaultHidden`: The default value for the `hidden` option used by
1919
[`getByRole`](api-queries#byrole). Defaults to `false`.
2020

21+
`showOriginalStackTrace`: By default, `waitFor` will ensure that the stack trace
22+
for errors thrown by Testing Library is cleaned up and shortened so it's easier
23+
for you to identify the part of your code that resulted in the error (async
24+
stack traces are hard to debug). If you want to disable this, then set
25+
`showOriginalStackTrace` to `false`. You can also disable this for a specific
26+
call in the options you pass to `waitFor`.
27+
2128
`testIdAttribute`: The attribute used by [`getByTestId`](api-queries#bytestid)
2229
and related queries. Defaults to `data-testid`.
2330

0 commit comments

Comments
 (0)