File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
docs/react-testing-library Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ as these methods:
31
31
- [ ` renderHook ` Result] ( #renderhook-result )
32
32
- [ ` result ` ] ( #result )
33
33
- [ ` rerender ` ] ( #rerender-1 )
34
+ - [ ` configure ` ] ( #configure )
35
+ - [ ` configure ` Options] ( #configure-options )
34
36
35
37
---
36
38
@@ -431,3 +433,23 @@ const {rerender} = renderHook(({name = 'Alice'} = {}) => name)
431
433
// re-render the same hook with different props
432
434
rerender ({name: ' Bob' })
433
435
` ` `
436
+
437
+ ## ` configure `
438
+
439
+ Changes global options. Basic usage can be seen at
440
+ [Configuration Options](dom-testing-library/api-configuration.mdx).
441
+
442
+ React Testing Library also has dedicated options.
443
+
444
+ ` ` ` typescript
445
+ import {configure } from ' @testing-library/react'
446
+
447
+ configure ({reactStrictMode: true })
448
+ ` ` `
449
+
450
+ ## ` configure ` Options
451
+
452
+ ### ` reactStrictMode `
453
+
454
+ When enabled, [ ` <StrictMode >` ](https://react.dev/reference/react/StrictMode) is
455
+ rendered around the inner element. Defaults to ` false ` .
You can’t perform that action at this time.
0 commit comments