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

Function fakeFetch

tests/renderToString.spec.ts:37–39  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

35
36 it('returns correct html with pre-fetched data on server', async () => {
37 function fakeFetch(text: string) {
38 return Promise.resolve(text)
39 }
40
41 const Component = defineComponent({
42 template: '<div>{{ text }}</div>',

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…