UNPKG

corde

Version:

A simple library for Discord bot tests

22 lines (21 loc) 760 B
import { IRunnerReport, ITest, ITestFile, ITestReport } from "../types"; import { LogUpdate } from "../utils"; export declare class TestExecutor { private _logUpdate; constructor(logUpdate: LogUpdate); runTestsAndPrint(testMatches: ITestFile[]): Promise<IRunnerReport>; private executeTestFile; private executeGroup; private executeTest; private printTestsReportAndUpdateRunnerReport; private ITestReportLabelFunction; private printReportAndUpdateRunnerReport; private printReportData; private createTestText; private createTestTextByStatus; runTest(test: ITest): Promise<ITestReport[]>; private executeHookFunctionIfPossible; private getErrorMessage; private getAssertionPropsFromGroup; private getAssertionsPropsFromTest; }