Skip to content

Commit

Permalink
feat: add ability to extend hermione.ctx typings
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovRoman committed Mar 27, 2024
1 parent 58aba75 commit 540893c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ export interface TestResultWithRetries extends TestResult {
retriesLeft: number;
}

export interface HermioneCtx extends Record<string, unknown> {}

export interface GlobalHelper {
ctx: Record<string, unknown>;
ctx: HermioneCtx;
skip: SkipController;
only: OnlyController;
browser: (browserName: string) => BrowserVersionController;
Expand Down

0 comments on commit 540893c

Please sign in to comment.