corde
Version:
A simple library for Discord bot tests
46 lines (45 loc) • 1.34 kB
TypeScript
import {
afterAll as _afterAll,
beforeStart as _beforeStart,
afterEach as _afterEach,
beforeEach as _beforeEach,
} from "./hooks";
import { BotAPI } from "./api";
import { IConfigOptions } from "./types";
/**
* Corde's utility namespace to call it's API functions.
* You can also import each function desconstructing in corde lib import
*/
export declare namespace corde {
const afterAll: typeof _afterAll;
const beforeStart: typeof _beforeStart;
const afterEach: typeof _afterEach;
const beforeEach: typeof _beforeEach;
const expect: import("./types").IExpect;
const group: <T extends unknown>(
definitionResolvable: T,
testDefinitions: import("./types").VoidLikeFunction,
) => void;
const describe: <T extends unknown>(
definitionResolvable: T,
testDefinitions: import("./types").VoidLikeFunction,
) => void;
const it: <T extends unknown>(
expectationDescription: T,
assertion: import("./types").VoidLikeFunction,
timeout?: number | undefined,
) => void;
const test: <T extends unknown>(
expectationDescription: T,
assertion: import("./types").VoidLikeFunction,
timeout?: number | undefined,
) => void;
/**
* Corde's bot API
*/
const bot: BotAPI;
/**
* Corde's configs for readonly purpose
*/
const configs: Readonly<Required<IConfigOptions>>;
}