UNPKG

allure-vitest

Version:
10 lines (9 loc) 366 B
import { AsyncLocalStorage } from "node:async_hooks"; import { type Test } from "@vitest/runner"; type AllureVitestAsyncContext = { currentTaskStorage: AsyncLocalStorage<Test>; activeTasks: WeakSet<Test>; }; export declare const getAsyncContext: () => AllureVitestAsyncContext; export declare const getCurrentTest: () => Test<object> | undefined; export {};