Home > @lynx-js/react/testing-library > RenderOptions

RenderOptions interface

The options for render().

Signature:

export interface RenderOptions<Q extends Queries = typeof queries>

Properties

Property Modifiers Type Description
enableBackgroundThread? boolean (Optional) Render your component in the background thread or not.Note that all user code in the top level will be executed in the background thread by default. (eg. BACKGROUND is true in the top level)
enableMainThread? boolean (Optional) Render your component in the main thread or not.It is recommended to use this option only when you need to test the IFR behavior.
queries? Q (Optional) Queries to bind. Overrides the default set from DOM Testing Library unless merged.
wrapper? ComponentChild (Optional) Pass a React Component as the wrapper option to have it rendered around the inner element. This is most useful for creating reusable custom render functions for common data providers. See setup for examples.
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。