fix: move comments out of JSDoc type literal in test() helper

pull/18867/head
Dextheking1 3 days ago
parent 639865bf94
commit d70553a274

@ -116,6 +116,10 @@ function normalize_children(node) {
// The following two functions need to be in here; if we had them in test.ts, esbuild would choke on node imports etc
// `__real_click` performs a real (trusted) mouse click at viewport coordinates.
// Pass `real_click: true` in the test config to expose `window.__real_click`
// for dispatching real (trusted) mouse clicks from the test.
/**
* @template Props
* @param {{
@ -153,7 +157,6 @@ function normalize_children(node) {
* InputEvent: typeof InputEvent;
* KeyboardEvent: typeof KeyboardEvent;
* MouseEvent: typeof MouseEvent;
* // performs a real (trusted) mouse click at viewport coordinates, requires `real_click: true`
* __real_click: (x: number, y: number) => Promise<void>;
* };
* waitUntil: (fn: any, ms?: number) => Promise<void>;
@ -162,7 +165,6 @@ function normalize_children(node) {
* immutable?: boolean;
* dev?: boolean;
* warnings?: Warning[];
* // expose `window.__real_click` for dispatching real (trusted) mouse clicks from the test
* real_click?: boolean;
*}} args
*/

Loading…
Cancel
Save