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

Function createWindow

packages/qwik/src/testing/document.ts:22–24  ·  view source on GitHub ↗
(opts: MockDocumentOptions = {})

Source from the content-addressed store, hash-verified

20 * @public
21 */
22export function createWindow(opts: MockDocumentOptions = {}): MockWindow {
23 return createDocument(opts).defaultView!;
24}
25
26export function ensureGlobals(doc: any, opts?: MockDocumentOptions) {
27 if (doc && doc[QWIK_DOC]) {

Callers 2

constructorMethod · 0.90
document.unit.tsFile · 0.90

Calls 1

createDocumentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…