@wdio/utils
Advanced tools
Comparing version 8.28.6 to 8.28.8
import type { WrapperMethods, SpecFunction, BeforeHookParam, AfterHookParam } from './types.js'; | ||
declare global { | ||
var _wdioDynamicJasmineResultErrorList: any | undefined; | ||
var _jasmineTestResult: any | undefined; | ||
} | ||
/** | ||
@@ -15,3 +19,3 @@ * wraps test framework spec/hook function with WebdriverIO before/after hooks | ||
*/ | ||
export declare const testFnWrapper: (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined, args_7?: number | undefined) => Promise<unknown>; | ||
export declare const testFnWrapper: (this: unknown, args_0: string, args_1: SpecFunction, args_2: BeforeHookParam<unknown>, args_3: AfterHookParam<unknown>, args_4: string, args_5: number, args_6?: string | undefined, args_7?: number | undefined) => Promise<any>; | ||
/** | ||
@@ -31,3 +35,3 @@ * wraps test framework spec/hook function with WebdriverIO before/after hooks | ||
*/ | ||
export declare const testFrameworkFnWrapper: (this: unknown, { executeHooksWithArgs, executeAsync }: WrapperMethods, type: string, { specFn, specFnArgs }: SpecFunction, { beforeFn, beforeFnArgs }: BeforeHookParam<unknown>, { afterFn, afterFnArgs }: AfterHookParam<unknown>, cid: string, repeatTest?: number, hookName?: string, timeout?: number) => Promise<unknown>; | ||
export declare const testFrameworkFnWrapper: (this: unknown, { executeHooksWithArgs, executeAsync }: WrapperMethods, type: string, { specFn, specFnArgs }: SpecFunction, { beforeFn, beforeFnArgs }: BeforeHookParam<unknown>, { afterFn, afterFnArgs }: AfterHookParam<unknown>, cid: string, repeatTest?: number, hookName?: string, timeout?: number) => Promise<any>; | ||
/** | ||
@@ -34,0 +38,0 @@ * Filter out internal stacktraces. exporting to allow testing of the function |
@@ -8,2 +8,3 @@ import { logHookError } from './errorHandler.js'; | ||
'(internal/process/task', | ||
'(node:internal/process/task' | ||
]; | ||
@@ -52,2 +53,11 @@ /** | ||
result = await executeAsync.call(this, specFn, retries, specFnArgs, timeout); | ||
if (globalThis._jasmineTestResult !== undefined) { | ||
result = globalThis._jasmineTestResult; | ||
globalThis._jasmineTestResult = undefined; | ||
} | ||
if (globalThis._wdioDynamicJasmineResultErrorList?.length > 0) { | ||
globalThis._wdioDynamicJasmineResultErrorList[0].stack = filterStackTrace(globalThis._wdioDynamicJasmineResultErrorList[0].stack); | ||
error = globalThis._wdioDynamicJasmineResultErrorList[0]; | ||
globalThis._wdioDynamicJasmineResultErrorList = undefined; | ||
} | ||
} | ||
@@ -54,0 +64,0 @@ catch (err) { |
{ | ||
"name": "@wdio/utils", | ||
"version": "8.28.6", | ||
"version": "8.28.8", | ||
"description": "A WDIO helper utility to provide several utility functions used across the project.", | ||
@@ -57,3 +57,3 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
}, | ||
"gitHead": "22402f1129cc993b1c8d6bb483c95248b2679c65" | ||
"gitHead": "3ce19a7ceca0a038e9b1ec66f8774bbcb0e8098b" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
160253
3303