@@ -144,6 +144,7 @@ test('Fetch makes an API call and displays the greeting when load-greeting is cl
144144-  [ Usage] ( #usage ) 
145145  -  [ ` render ` ] ( #render ) 
146146  -  [ ` cleanup ` ] ( #cleanup ) 
147+   -  [ ` flushEffects `  (experimental)] ( #flusheffects-experimental ) 
147148-  [ ` dom-testing-library `  APIs] ( #dom-testing-library-apis ) 
148149  -  [ ` fireEvent(node: HTMLElement, event: Event) ` ] ( #fireeventnode-htmlelement-event-event ) 
149150  -  [ ` waitForElement ` ] ( #waitforelement ) 
@@ -283,9 +284,11 @@ module.exports = {
283284  ],
284285  // ... other options ...
285286}
286- ```    
287+ ``` 
287288
288- If your project is based on top of Create React App, to make the file accessible without using relative imports, you just need to create a ` .env `  file in the root of your project with the following configuration:  
289+ If your project is based on top of Create React App, to make the file accessible
290+ without using relative imports, you just need to create a ` .env `  file in the
291+ root of your project with the following configuration:
289292
290293``` 
291294// Create React App project structure 
@@ -493,7 +496,8 @@ unmount()
493496
494497####  ` getByLabelText (text : TextMatch , options ): HTMLElement ` 
495498
496- > Options:  ` {selector  =  ' *' exact  =  true , collapseWhitespace  =  true , trim  =  true }` 
499+ > Options: 
500+ >  ` {selector  =  ' *' exact  =  true , collapseWhitespace  =  true , trim  =  true }` 
497501
498502This will search for the label that matches the given [ ` TextMatch ` ](#textmatch), 
499503then find the element associated with that label. 
@@ -550,7 +554,8 @@ const inputNode = getByPlaceholderText('Username')
550554
551555####  ` getByText (text : TextMatch , options ): HTMLElement ` 
552556
553- > Options:  ` {selector  =  ' *' exact  =  true , collapseWhitespace  =  true , trim  =  true , ignore  =  ' script, style' ` 
557+ > Options: 
558+ >  ` {selector  =  ' *' exact  =  true , collapseWhitespace  =  true , trim  =  true , ignore  =  ' script, style' ` 
554559
555560This will search for all elements that have a text node with  ` textContent ` 
556561matching the given [ ` TextMatch ` ](#textmatch). 
@@ -733,6 +738,11 @@ that you configure your test framework to run a file before your tests which
733738does this automatically. See the [setup](#setup) section for guidance on how to 
734739set up your framework. 
735740
741+ ###  ` flushEffects `  (experimental) 
742+ 
743+ This experimental API is intended to be used to force React's  ` useEffect `  hook 
744+ to run synchronously. 
745+ 
736746##  ` dom - testing - library `  APIs 
737747
738748` react - testing - library `  is built on top of 
@@ -1369,6 +1379,7 @@ Thanks goes to these people ([emoji key][emojis]):
13691379| [<img src="https://avatars3.githubusercontent.com/u/881986?v=4" width="100px;"/><br /><sub><b>dadamssg</b></sub>](https://github.com/dadamssg)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=dadamssg "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/8734097?v=4" width="100px;"/><br /><sub><b>Yazan Aabed</b></sub>](https://www.yaabed.com/)<br />[📝](#blog-YazanAabeed "Blogposts") | [<img src="https://avatars0.githubusercontent.com/u/556258?v=4" width="100px;"/><br /><sub><b>Tim</b></sub>](https://github.com/timbonicus)<br />[🐛](https://github.com/kentcdodds/react-testing-library/issues?q=author%3Atimbonicus "Bug reports") [💻](https://github.com/kentcdodds/react-testing-library/commits?author=timbonicus "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=timbonicus "Documentation") [⚠️](https://github.com/kentcdodds/react-testing-library/commits?author=timbonicus "Tests") | [<img src="https://avatars3.githubusercontent.com/u/6682655?v=4" width="100px;"/><br /><sub><b>Divyanshu Maithani</b></sub>](http://divyanshu.xyz)<br />[✅](#tutorial-divyanshu013 "Tutorials") [📹](#video-divyanshu013 "Videos") | [<img src="https://avatars2.githubusercontent.com/u/9116042?v=4" width="100px;"/><br /><sub><b>Deepak Grover</b></sub>](https://www.linkedin.com/in/metagrover)<br />[✅](#tutorial-metagrover "Tutorials") [📹](#video-metagrover "Videos") | [<img src="https://avatars0.githubusercontent.com/u/16276358?v=4" width="100px;"/><br /><sub><b>Eyal Cohen</b></sub>](https://github.com/eyalcohen4)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=eyalcohen4 "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/7452681?v=4" width="100px;"/><br /><sub><b>Peter Makowski</b></sub>](https://github.com/petermakowski)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=petermakowski "Documentation") | 
13701380| [<img src="https://avatars2.githubusercontent.com/u/20361668?v=4" width="100px;"/><br /><sub><b>Michiel Nuyts</b></sub>](https://github.com/Michielnuyts)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=Michielnuyts "Documentation") | [<img src="https://avatars0.githubusercontent.com/u/1195863?v=4" width="100px;"/><br /><sub><b>Joe Ng'ethe</b></sub>](https://github.com/joeynimu)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=joeynimu "Code") [📖](https://github.com/kentcdodds/react-testing-library/commits?author=joeynimu "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/19998290?v=4" width="100px;"/><br /><sub><b>Kate</b></sub>](https://github.com/Enikol)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=Enikol "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/11980217?v=4" width="100px;"/><br /><sub><b>Sean</b></sub>](http://www.seanrparker.com)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=SeanRParker "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/17031?v=4" width="100px;"/><br /><sub><b>James Long</b></sub>](http://jlongster.com)<br />[🤔](#ideas-jlongster "Ideas, Planning, & Feedback") [📦](#platform-jlongster "Packaging/porting to new platform") | [<img src="https://avatars1.githubusercontent.com/u/10118777?v=4" width="100px;"/><br /><sub><b>Herb Hagely</b></sub>](https://github.com/hhagely)<br />[💡](#example-hhagely "Examples") | [<img src="https://avatars2.githubusercontent.com/u/5779538?v=4" width="100px;"/><br /><sub><b>Alex Wendte</b></sub>](http://www.wendtedesigns.com/)<br />[💡](#example-themostcolm "Examples") | 
13711381| [<img src="https://avatars0.githubusercontent.com/u/6998954?v=4" width="100px;"/><br /><sub><b>Monica Powell</b></sub>](http://www.aboutmonica.com)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=M0nica "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/2699953?v=4" width="100px;"/><br /><sub><b>Vitaly Sivkov</b></sub>](http://sivkoff.com)<br />[💻](https://github.com/kentcdodds/react-testing-library/commits?author=sivkoff "Code") | [<img src="https://avatars3.githubusercontent.com/u/7049?v=4" width="100px;"/><br /><sub><b>Weyert de Boer</b></sub>](https://github.com/weyert)<br />[🤔](#ideas-weyert "Ideas, Planning, & Feedback") [👀](#review-weyert "Reviewed Pull Requests") | [<img src="https://avatars3.githubusercontent.com/u/13613037?v=4" width="100px;"/><br /><sub><b>EstebanMarin</b></sub>](https://github.com/EstebanMarin)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=EstebanMarin "Documentation") | [<img src="https://avatars2.githubusercontent.com/u/13953703?v=4" width="100px;"/><br /><sub><b>Victor Martins</b></sub>](https://github.com/vctormb)<br />[📖](https://github.com/kentcdodds/react-testing-library/commits?author=vctormb "Documentation") | 
1382+ 
13721383<!-- ALL-CONTRIBUTORS-LIST:END --> 
13731384
13741385This project follows the [all-contributors][all-contributors] specification. 
0 commit comments