Home / Function/ untilBrowserLogAfter() — vite Function Reference

untilBrowserLogAfter() — vite Function Reference

Architecture documentation for the untilBrowserLogAfter() function in test-utils.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  8ee0e97d_c7ee_a28a_08b3_e9351296df2d["untilBrowserLogAfter()"]
  c68b21f4_9cd3_3abe_8169_0de2c9650f53["test-utils.ts"]
  8ee0e97d_c7ee_a28a_08b3_e9351296df2d -->|defined in| c68b21f4_9cd3_3abe_8169_0de2c9650f53
  a48bb8d5_8ec4_bada_ed97_8eef2ad4dcd4["untilBrowserLog()"]
  8ee0e97d_c7ee_a28a_08b3_e9351296df2d -->|calls| a48bb8d5_8ec4_bada_ed97_8eef2ad4dcd4
  style 8ee0e97d_c7ee_a28a_08b3_e9351296df2d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/test-utils.ts lines 256–272

export async function untilBrowserLogAfter(
  operation: () => any,
  target: string | RegExp | Array<string | RegExp>,
  arg3?: boolean | UntilBrowserLogAfterCallback,
  arg4?: UntilBrowserLogAfterCallback,
): Promise<string[]> {
  const expectOrder = typeof arg3 === 'boolean' ? arg3 : false
  const callback = typeof arg3 === 'boolean' ? arg4 : arg3

  const promise = untilBrowserLog(target, expectOrder)
  await operation()
  const logs = await promise
  if (callback) {
    await callback(logs)
  }
  return logs
}

Domain

Subdomains

Frequently Asked Questions

What does untilBrowserLogAfter() do?
untilBrowserLogAfter() is a function in the vite codebase, defined in playground/test-utils.ts.
Where is untilBrowserLogAfter() defined?
untilBrowserLogAfter() is defined in playground/test-utils.ts at line 256.
What does untilBrowserLogAfter() call?
untilBrowserLogAfter() calls 1 function(s): untilBrowserLog.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free