MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / waitForPostMessage

Function waitForPostMessage

packages/browser/test/index.test.ts:168–171  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

166 });
167
168 const waitForPostMessage = async (message: string) => {
169 WINDOW.postMessage(message, '*');
170 await flush(10);
171 };
172
173 it('should call `onClose` when receiving `__sentry_reportdialog_closed__` MessageEvent', async () => {
174 const onClose = vi.fn();

Callers 1

index.test.tsFile · 0.85

Calls 2

flushFunction · 0.90
postMessageMethod · 0.65

Tested by

no test coverage detected