getBg() — vite Function Reference
Architecture documentation for the getBg() function in test-utils.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 646c1759_79d9_a24d_728a_0d324747ead3["getBg()"] c68b21f4_9cd3_3abe_8169_0de2c9650f53["test-utils.ts"] 646c1759_79d9_a24d_728a_0d324747ead3 -->|defined in| c68b21f4_9cd3_3abe_8169_0de2c9650f53 7dacb29d_bf7e_9683_9334_81d5496b7829["toEl()"] 646c1759_79d9_a24d_728a_0d324747ead3 -->|calls| 7dacb29d_bf7e_9683_9334_81d5496b7829 style 646c1759_79d9_a24d_728a_0d324747ead3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/test-utils.ts lines 117–122
export async function getBg(
el: string | ElementHandle | Locator,
): Promise<string> {
el = await toEl(el)
return el.evaluate((el) => getComputedStyle(el as Element).backgroundImage)
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does getBg() do?
getBg() is a function in the vite codebase, defined in playground/test-utils.ts.
Where is getBg() defined?
getBg() is defined in playground/test-utils.ts at line 117.
What does getBg() call?
getBg() calls 1 function(s): toEl.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free