For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/react/testing-library/Type_Aliases/Screen.md.
Lynx
  • English
    • 简体中文
  • Type Alias: Screen<Q extends Queries = typeof queries>

    Screen<Q extends Queries = typeof queries> = BoundFunctions<Q> & object

    Type Declaration

    debug

    debug: (element?: (Element | HTMLDocument)[] | Element | HTMLDocument, maxLength?: number, options?: OptionsReceived) => void

    Convenience function for pretty-dom which also allows an array of elements

    Parameters

    ParameterType
    element?(Element | HTMLDocument)[] | Element | HTMLDocument
    maxLength?number
    options?OptionsReceived

    Returns

    void

    logTestingPlaygroundURL

    logTestingPlaygroundURL: (element?: Element | HTMLDocument) => string

    Convenience function for Testing Playground which logs and returns the URL that can be opened in a browser

    Parameters

    ParameterType
    element?Element | HTMLDocument

    Returns

    string

    Type Parameters

    Type ParameterDefault type
    Q extends Queriestypeof queries
    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.