From 540893cd3cdadcdd25cfc4d2a0b6a114a77cc164 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Wed, 27 Mar 2024 14:18:02 +0300 Subject: [PATCH] feat: add ability to extend hermione.ctx typings --- src/types/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index cb93dbdfd..e7cdb480e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -133,8 +133,10 @@ export interface TestResultWithRetries extends TestResult { retriesLeft: number; } +export interface HermioneCtx extends Record {} + export interface GlobalHelper { - ctx: Record; + ctx: HermioneCtx; skip: SkipController; only: OnlyController; browser: (browserName: string) => BrowserVersionController;