Type Alias MochaTest

MochaTest: {
    ctx: { test: MochaTest };
    fn: AnyFunction;
    id: string;
    parent: MochaNode;
    root?: undefined;
    title: string;
    type: "test";
}

An individual test context inside MochaTestContext.

Type declaration

  • ctx: { test: MochaTest }
  • fn: AnyFunction

    The current test callback.

  • id: string
  • parent: MochaNode
  • Optionalroot?: undefined
  • title: string

    The current test name.

  • type: "test"