We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2065f commit 1b639a7Copy full SHA for 1b639a7
packages/test-runner-chrome/src/ChromeLauncherPage.ts
@@ -4,7 +4,9 @@ import { v8ToIstanbul } from '@web/test-runner-coverage-v8';
4
import { SessionResult } from '@web/test-runner-core';
5
6
declare global {
7
- interface Window { __bringTabToFront: Function; }
+ interface Window {
8
+ __bringTabToFront: () => void;
9
+ }
10
}
11
12
export class ChromeLauncherPage {
@@ -50,6 +52,7 @@ export class ChromeLauncherPage {
50
52
this.puppeteerPage.bringToFront(),
51
53
);
54
await this.puppeteerPage.evaluateOnNewDocument(() => {
55
+ // eslint-disable-next-line @typescript-eslint/ban-types
56
function patchFunction(name: string, fn: Function) {
57
(window as any)[name] = (...args: unknown[]) => {
58
fn.call(window, ...args);
0 commit comments