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

Method toDisplayRedbox

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

* Inline snapshot matcher for a Redbox that's popped up by default. * When a Redbox is hidden at first and requires manual display by clicking the toast, * use {@link toDisplayCollapsedRedbox} instead. * * * If the project root appears in the snapshot, pass in the

(
        inlineSnapshot?: string,
        opts?: ErrorSnapshotOptions
      )

Source from the content-addressed store, hash-verified

40 * @param inlineSnapshot - The snapshot to compare against.
41 */
42 toDisplayRedbox(
43 inlineSnapshot?: string,
44 opts?: ErrorSnapshotOptions
45 ): Promise<void>

Calls

no outgoing calls

Tested by

no test coverage detected