MCPcopy Index your code
hub / github.com/QwikDev/qwik / createDocument

Function createDocument

packages/qwik/src/testing/document.ts:11–15  ·  view source on GitHub ↗
(opts?: MockDocumentOptions)

Source from the content-addressed store, hash-verified

9 * @public
10 */
11export function createDocument(opts?: MockDocumentOptions) {
12 const doc = domino.createDocument(opts?.html);
13 ensureGlobals(doc, opts);
14 return doc;
15}
16
17/**
18 * Create emulated `window` useful for testing.

Callers 6

store.unit.tsxFile · 0.90
render.unit.tsxFile · 0.90
render.unit.tsxFile · 0.90
document.unit.tsFile · 0.90
getPageHtmlFunction · 0.90
createWindowFunction · 0.70

Calls 1

ensureGlobalsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…