# MochaInitHook Class

Module
import { MochaInitHook } from "@tsed/cli-plugin-mocha/src/hooks/MochaInitHook"
Source/packages/cli-plugin-mocha/src/hooks/MochaInitHook.ts

# Overview

class MochaInitHook {
    protected packageJson: ProjectPackageJson;
    protected srcRenderer: SrcRendererService;
    protected rootRenderer: RootRendererService;
    protected scriptsRenderer: ScriptsRendererService;
    onExec(): {
        title: string;
        task: (ctx: any) => Promise<import("rxjs").Observable<unknown>>;
    }[];
}

# Members

protected packageJson: ProjectPackageJson

protected srcRenderer: SrcRendererService

protected rootRenderer: RootRendererService

protected scriptsRenderer: ScriptsRendererService

onExec(): {
     title: string;
     task: (ctx: any) => Promise<import("rxjs").Observable<unknown>>;
 }[];