For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/react/testing-library/Interfaces/PrettyDOMOptions.md.
Lynx
  • 简体中文
  • Interface: PrettyDOMOptions

    Extends

    Properties

    callToJSON?

    optional callToJSON?: boolean

    Inherited from

    prettyFormat.OptionsReceived.callToJSON


    compareKeys?

    optional compareKeys?: CompareKeys

    Inherited from

    prettyFormat.OptionsReceived.compareKeys


    escapeRegex?

    optional escapeRegex?: boolean

    Inherited from

    prettyFormat.OptionsReceived.escapeRegex


    escapeString?

    optional escapeString?: boolean

    Inherited from

    prettyFormat.OptionsReceived.escapeString


    filterNode?

    optional filterNode?: (node: Node) => boolean

    传入一个 Node,返回 false 表示在输出中忽略该节点。 默认忽略 <style />、<script /> 和注释节点。

    Parameters

    ParameterType
    nodeNode

    Returns

    boolean


    highlight?

    optional highlight?: boolean

    Inherited from

    prettyFormat.OptionsReceived.highlight


    indent?

    optional indent?: number

    Inherited from

    prettyFormat.OptionsReceived.indent


    maxDepth?

    optional maxDepth?: number

    Inherited from

    prettyFormat.OptionsReceived.maxDepth


    min?

    optional min?: boolean

    Inherited from

    prettyFormat.OptionsReceived.min


    plugins?

    optional plugins?: Plugins

    Inherited from

    prettyFormat.OptionsReceived.plugins


    printBasicPrototype?

    optional printBasicPrototype?: boolean

    Inherited from

    prettyFormat.OptionsReceived.printBasicPrototype


    printFunctionName?

    optional printFunctionName?: boolean

    Inherited from

    prettyFormat.OptionsReceived.printFunctionName


    theme?

    optional theme?: ThemeReceived

    Inherited from

    prettyFormat.OptionsReceived.theme

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。