MCPcopy
hub / github.com/vercel/next.js / toDisplayCollapsedRedbox

Method toDisplayCollapsedRedbox

test/lib/add-redbox-matchers.ts:65–65  ·  view source on GitHub ↗

* Inline snapshot matcher for a Redbox that's collapsed by default. * When a Redbox is immediately displayed, * use {@link toDisplayRedbox} instead. * * If the project root appears in the snapshot, pass in the `NextInstance` * as well to normalize the snapshot e.g.

(
        inlineSnapshot?: string,
        opts?: ErrorSnapshotOptions
      )

Source from the content-addressed store, hash-verified

63 * @param inlineSnapshot - The snapshot to compare against.
64 */
65 toDisplayCollapsedRedbox(
66 inlineSnapshot?: string,
67 opts?: ErrorSnapshotOptions
68 ): Promise<void>

Calls

no outgoing calls

Tested by

no test coverage detected