allure-vitest
Version:
Allure Vitest integration
10 lines (9 loc) • 366 B
TypeScript
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 {};