Skip to content

Commit

Permalink
fix(test-utils) global function return type (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Dec 6, 2024
1 parent e48e626 commit 626a1d6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import BrowserDriver, {ServerConfiguration} from './browser-driver';
declare global {
function browserTestDriver_fail(): void;
function browserTestDriver_finish(): string;
function browserTestDriver_emulateInput(event: unknown): void;
function browserTestDriver_emulateInput(event: unknown): Promise<void>;
function browserTestDriver_captureAndDiffScreen(opts: DiffImagesOpts): Promise<DiffImageResult>;
}

Expand Down Expand Up @@ -45,13 +45,6 @@ export type DiffImageResult = {
error: Error | string | null;
};

declare global {
function browserTestDriver_fail(): void;
function browserTestDriver_finish(message?: string): void;
function browserTestDriver_emulateInput(event: unknown): Promise<void>;
function browserTestDriver_captureAndDiffScreen(opts: DiffImagesOpts): Promise<DiffImageResult>;
}

/** A test driver that starts a browser instance and runs tests inside it */
export default class BrowserTestDriver extends BrowserDriver {
title: string = '';
Expand Down

0 comments on commit 626a1d6

Please sign in to comment.