Installation
npm install --save @types/baretest
Summary
This package contains type definitions for baretest (https://volument.com/baretest).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/baretest.
index.d.ts
export = baretest;
declare function baretest(headline: string): TesterFunctionObject;
type TesterFunctionObject = TesterFunction & TesterSubFunctions;
type TesterFunction = (name: string, fn: SyncOrAsyncVoidFunction) => void;
interface TesterSubFunctions {
only: (name: string, fn: SyncOrAsyncVoidFunction) => void;
skip: (name?: string, fn?: SyncOrAsyncVoidFunction) => void;
before: (fn: SyncOrAsyncVoidFunction) => void;
after: (fn: SyncOrAsyncVoidFunction) => void;
run: () => Promise<boolean>;
}
type SyncOrAsyncVoidFunction = () => void | Promise<void>;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: none
Credits
These definitions were written by Rory O’Kane.