Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait ReactTestUtilstrait ReactTestUtilExtensionstrait ReactTestUtilExtensions1class Objecttrait Matchableclass AnyShow all
- Self type
-
ReactTestUtils.type
Members list
Type members
Value members
Inherited methods
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
await act(async () => {
// render components
});
// make assertions
This helps make your tests run closer to what real users would experience when using your application.
Attributes
- Inherited from:
- ReactTestUtils
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
When writing UI tests, tasks like rendering, user events, or data fetching can be considered as "units" of interaction with a user interface. React provides a helper called act() that makes sure all updates related to these "units" have been processed and applied to the DOM before you make any assertions:
act {
// render components
}
// make assertions
This helps make your tests run closer to what real users would experience when using your application.
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Turn <div data-reactroot="">hello</div> into <div>hello</div>
Turn <div data-reactroot="">hello</div> into <div>hello</div>
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Inherited fields
Attributes
- Inherited from:
- ReactTestUtils
Attributes
- Inherited from:
- ReactTestUtils
Implicits
Inherited implicits
Attributes
- Inherited from:
- ReactTestUtilExtensions
Attributes
- Inherited from:
- ReactTestUtilExtensions1