MCPcopy
hub / github.com/vuejs/core / runOnServer

Function runOnServer

packages/runtime-core/__tests__/helpers/useId.spec.ts:28–33  ·  view source on GitHub ↗
(factory: TestCaseFactory)

Source from the content-addressed store, hash-verified

26}
27
28async function runOnServer(factory: TestCaseFactory) {
29 const [app, _] = await factory()
30 return (await renderToString(app))
31 .replace(/<!--[\[\]]-->/g, '') // remove fragment wrappers
32 .trim()
33}
34
35async function getOutput(factory: TestCaseFactory) {
36 const clientResult = await runOnClient(factory)

Callers 1

getOutputFunction · 0.85

Calls 2

renderToStringFunction · 0.90
factoryFunction · 0.85

Tested by

no test coverage detected