File tree 2 files changed +24
-1
lines changed
docs/react-testing-library
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ as these methods:
32
32
- [ ` result ` ] ( #result )
33
33
- [ ` rerender ` ] ( #rerender-1 )
34
34
- [ ` unmount ` ] ( #unmount-1 )
35
+ - [ ` configure ` ] ( #configure )
36
+ - [ ` configure ` Options] ( #configure-options )
35
37
36
38
---
37
39
@@ -451,3 +453,24 @@ const {unmount} = renderHook(({name = 'Alice'} = {}) => name)
451
453
452
454
unmount ()
453
455
` ` `
456
+
457
+ ## ` configure `
458
+
459
+ Changes global options. Basic usage can be seen at
460
+ [Configuration Options](dom-testing-library/api-configuration.mdx).
461
+
462
+ React Testing Library also has dedicated options.
463
+
464
+ ` ` ` typescript
465
+ import {configure } from ' @testing-library/react'
466
+
467
+ configure ({reactStrictMode: true })
468
+ ` ` `
469
+
470
+ ## ` configure ` Options
471
+
472
+ ### ` reactStrictMode `
473
+
474
+ When enabled, [ ` <StrictMode >` ](https://react.dev/reference/react/StrictMode) is
475
+ rendered around the inner element. Defaults to ` false ` .
476
+
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ See [Events API](dom-testing-library/api-events.mdx)
131
131
## Other
132
132
133
133
See [ Querying Within Elements] ( dom-testing-library/api-within.mdx ) ,
134
- [ Config API] ( dom -testing-library/api-configuration .mdx) ,
134
+ [ Config API] ( react -testing-library/api.mdx#configure ) ,
135
135
[ Cleanup] ( react-testing-library/api.mdx#cleanup ) ,
136
136
137
137
- ** within** take a node and return an object with all the queries bound to the
You can’t perform that action at this time.
0 commit comments