MCPcopy Create free account
hub / github.com/vuejs/test-utils / renderToString

Function renderToString

src/renderToString.ts:24–31  ·  view source on GitHub ↗
(component: any, options?: any)

Source from the content-addressed store, hash-verified

22): Promise<string>
23
24export function renderToString(component: any, options?: any): Promise<string> {
25 if (options?.attachTo) {
26 console.warn('attachTo option is not available for renderToString')
27 }
28
29 const { app } = createInstance(component, options)
30 return baseRenderToString(app)
31}

Callers 2

Calls 1

createInstanceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…