MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / getOptionalWindow

Function getOptionalWindow

packages/app-core/src/lib/code-block-copy.test.ts:13–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11type TestWindow = Omit<Window, 'zen'> & { zen?: Window['zen'] }
12
13const getOptionalWindow = (): TestWindow => window as unknown as TestWindow
14
15afterEach(() => {
16 vi.useRealTimers()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected