Skip to content

Latest commit

 

History

History
2901 lines (1627 loc) · 54.8 KB

kui_shell_test.Common.ISuite.md

File metadata and controls

2901 lines (1627 loc) · 54.8 KB

Kui API Documentation - v11.0.0 / @kui-shell/test / Common / ISuite

Interface: ISuite

@kui-shell/test.Common.ISuite

Hierarchy

  • Suite

    ISuite

Table of contents

Properties

Methods

Properties

_kuiDestroyAfter

Optional _kuiDestroyAfter: boolean

Defined in

packages/test/src/api/common.ts:44


app

app: Application

Defined in

packages/test/src/api/common.ts:43


ctx

ctx: Context

Inherited from

Suite.ctx

Defined in

node_modules/@types/mocha/index.d.ts:1766


delayed

delayed: boolean

Inherited from

Suite.delayed

Defined in

node_modules/@types/mocha/index.d.ts:1772


file

Optional file: string

Inherited from

Suite.file

Defined in

node_modules/@types/mocha/index.d.ts:1770


parent

parent: Suite

Inherited from

Suite.parent

Defined in

node_modules/@types/mocha/index.d.ts:1773


pending

pending: boolean

Inherited from

Suite.pending

Defined in

node_modules/@types/mocha/index.d.ts:1769


root

root: boolean

Inherited from

Suite.root

Defined in

node_modules/@types/mocha/index.d.ts:1771


suites

suites: Suite[]

Inherited from

Suite.suites

Defined in

node_modules/@types/mocha/index.d.ts:1767


tests

tests: Test[]

Inherited from

Suite.tests

Defined in

node_modules/@types/mocha/index.d.ts:1768


title

title: string

Inherited from

Suite.title

Defined in

node_modules/@types/mocha/index.d.ts:1774

Methods

_createHook

Protected _createHook(title, fn?): Hook

Generic hook-creator.

Parameters

Name Type
title string
fn? Func | AsyncFunc

Returns

Hook

Inherited from

Suite._createHook

Defined in

node_modules/@types/mocha/index.d.ts:2029


addListener

addListener(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2036

addListener(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2047

addListener(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2058

addListener(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2069

addListener(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2080

addListener(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2091

addListener(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2102

addListener(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2113

addListener(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2124

addListener(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2135

addListener(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.addListener

Defined in

node_modules/@types/mocha/index.d.ts:2146


addSuite

addSuite(suite): ISuite

Add a test suite.

see https://mochajs.org/api/Mocha.Suite.html#addSuite

Parameters

Name Type
suite Suite

Returns

ISuite

Inherited from

Suite.addSuite

Defined in

node_modules/@types/mocha/index.d.ts:1972


addTest

addTest(test): ISuite

Add a test to this suite.

see https://mochajs.org/api/Mocha.Suite.html#addTest

Parameters

Name Type
test Test

Returns

ISuite

Inherited from

Suite.addTest

Defined in

node_modules/@types/mocha/index.d.ts:1979


afterAll

afterAll(fn?): ISuite

Run fn(test[, done]) after running tests.

see https://mochajs.org/api/Mocha.Suite.html#afterAll

Parameters

Name Type
fn? Func

Returns

ISuite

Inherited from

Suite.afterAll

Defined in

node_modules/@types/mocha/index.d.ts:1888

afterAll(fn?): ISuite

Run fn(test[, done]) after running tests.

see https://mochajs.org/api/Mocha.Suite.html#afterAll

Parameters

Name Type
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.afterAll

Defined in

node_modules/@types/mocha/index.d.ts:1895

afterAll(title, fn?): ISuite

Run fn(test[, done]) after running tests.

see https://mochajs.org/api/Mocha.Suite.html#afterAll

Parameters

Name Type
title string
fn? Func

Returns

ISuite

Inherited from

Suite.afterAll

Defined in

node_modules/@types/mocha/index.d.ts:1902

afterAll(title, fn?): ISuite

Run fn(test[, done]) after running tests.

see https://mochajs.org/api/Mocha.Suite.html#afterAll

Parameters

Name Type
title string
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.afterAll

Defined in

node_modules/@types/mocha/index.d.ts:1909


afterEach

afterEach(fn?): ISuite

Run fn(test[, done]) after each test case.

see https://mochajs.org/api/Mocha.Suite.html#afterEach

Parameters

Name Type
fn? Func

Returns

ISuite

Inherited from

Suite.afterEach

Defined in

node_modules/@types/mocha/index.d.ts:1944

afterEach(fn?): ISuite

Run fn(test[, done]) after each test case.

see https://mochajs.org/api/Mocha.Suite.html#afterEach

Parameters

Name Type
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.afterEach

Defined in

node_modules/@types/mocha/index.d.ts:1951

afterEach(title, fn?): ISuite

Run fn(test[, done]) after each test case.

see https://mochajs.org/api/Mocha.Suite.html#afterEach

Parameters

Name Type
title string
fn? Func

Returns

ISuite

Inherited from

Suite.afterEach

Defined in

node_modules/@types/mocha/index.d.ts:1958

afterEach(title, fn?): ISuite

Run fn(test[, done]) after each test case.

see https://mochajs.org/api/Mocha.Suite.html#afterEach

Parameters

Name Type
title string
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.afterEach

Defined in

node_modules/@types/mocha/index.d.ts:1965


bail

bail(): boolean

Get whether to bail after first error.

see https://mochajs.org/api/Mocha.Suite.html#bail

Returns

boolean

Inherited from

Suite.bail

Defined in

node_modules/@types/mocha/index.d.ts:1839

bail(bail): ISuite

Set whether to bail after first error.

see https://mochajs.org/api/Mocha.Suite.html#bail

Parameters

Name Type
bail boolean

Returns

ISuite

Inherited from

Suite.bail

Defined in

node_modules/@types/mocha/index.d.ts:1846


beforeAll

beforeAll(fn?): ISuite

Run fn(test[, done]) before running tests.

see https://mochajs.org/api/Mocha.Suite.html#beforeAll

Parameters

Name Type
fn? Func

Returns

ISuite

Inherited from

Suite.beforeAll

Defined in

node_modules/@types/mocha/index.d.ts:1860

beforeAll(fn?): ISuite

Run fn(test[, done]) before running tests.

see https://mochajs.org/api/Mocha.Suite.html#beforeAll

Parameters

Name Type
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.beforeAll

Defined in

node_modules/@types/mocha/index.d.ts:1867

beforeAll(title, fn?): ISuite

Run fn(test[, done]) before running tests.

see https://mochajs.org/api/Mocha.Suite.html#beforeAll

Parameters

Name Type
title string
fn? Func

Returns

ISuite

Inherited from

Suite.beforeAll

Defined in

node_modules/@types/mocha/index.d.ts:1874

beforeAll(title, fn?): ISuite

Run fn(test[, done]) before running tests.

see https://mochajs.org/api/Mocha.Suite.html#beforeAll

Parameters

Name Type
title string
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.beforeAll

Defined in

node_modules/@types/mocha/index.d.ts:1881


beforeEach

beforeEach(fn?): ISuite

Run fn(test[, done]) before each test case.

see https://mochajs.org/api/Mocha.Suite.html#beforeEach

Parameters

Name Type
fn? Func

Returns

ISuite

Inherited from

Suite.beforeEach

Defined in

node_modules/@types/mocha/index.d.ts:1916

beforeEach(fn?): ISuite

Run fn(test[, done]) before each test case.

see https://mochajs.org/api/Mocha.Suite.html#beforeEach

Parameters

Name Type
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.beforeEach

Defined in

node_modules/@types/mocha/index.d.ts:1923

beforeEach(title, fn?): ISuite

Run fn(test[, done]) before each test case.

see https://mochajs.org/api/Mocha.Suite.html#beforeEach

Parameters

Name Type
title string
fn? Func

Returns

ISuite

Inherited from

Suite.beforeEach

Defined in

node_modules/@types/mocha/index.d.ts:1930

beforeEach(title, fn?): ISuite

Run fn(test[, done]) before each test case.

see https://mochajs.org/api/Mocha.Suite.html#beforeEach

Parameters

Name Type
title string
fn? AsyncFunc

Returns

ISuite

Inherited from

Suite.beforeEach

Defined in

node_modules/@types/mocha/index.d.ts:1937


clone

clone(): Suite

Return a clone of this Suite.

see https://mochajs.org/api/Mocha.Suite.html#clone

Returns

Suite

Inherited from

Suite.clone

Defined in

node_modules/@types/mocha/index.d.ts:1790


dispose

dispose(): void

Cleans all references from this suite and all child suites.

https://mochajs.org/api/suite#dispose

Returns

void

Inherited from

Suite.dispose

Defined in

node_modules/@types/mocha/index.d.ts:1986


eachTest

eachTest(fn): ISuite

Iterates through each suite recursively to find all tests. Applies a function in the format fn(test).

see https://mochajs.org/api/Mocha.Suite.html#eachTest

Parameters

Name Type
fn (test: Test) => void

Returns

ISuite

Inherited from

Suite.eachTest

Defined in

node_modules/@types/mocha/index.d.ts:2017


emit

emit(name, hook): boolean

Parameters

Name Type
name "beforeAll"
hook Hook

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2040

emit(name, hook): boolean

Parameters

Name Type
name "afterAll"
hook Hook

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2051

emit(name, hook): boolean

Parameters

Name Type
name "beforeEach"
hook Hook

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2062

emit(name, hook): boolean

Parameters

Name Type
name "afterEach"
hook Hook

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2073

emit(name, suite): boolean

Parameters

Name Type
name "suite"
suite Suite

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2084

emit(name, test): boolean

Parameters

Name Type
name "test"
test Test

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2095

emit(name): boolean

Parameters

Name Type
name "run"

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2106

emit(name, context, file, mocha): boolean

Parameters

Name Type
name "pre-require"
context MochaGlobals
file string
mocha Mocha

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2117

emit(name, module, file, mocha): boolean

Parameters

Name Type
name "require"
module any
file string
mocha Mocha

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2128

emit(name, context, file, mocha): boolean

Parameters

Name Type
name "post-require"
context MochaGlobals
file string
mocha Mocha

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2139

emit(name, ...args): boolean

Parameters

Name Type
name string
...args any[]

Returns

boolean

Inherited from

Suite.emit

Defined in

node_modules/@types/mocha/index.d.ts:2150


eventNames

eventNames(): (string | symbol)[]

Returns

(string | symbol)[]

Inherited from

Suite.eventNames

Defined in

node_modules/@types/node/globals.d.ts:633


fullTitle

fullTitle(): string

Return the full title generated by recursively concatenating the parent's full title.

see https://mochajs.org/api/Mocha.Suite.html#.Suite#fullTitle

Returns

string

Inherited from

Suite.fullTitle

Defined in

node_modules/@types/mocha/index.d.ts:1994


getMaxListeners

getMaxListeners(): number

Returns

number

Inherited from

Suite.getMaxListeners

Defined in

node_modules/@types/node/globals.d.ts:625


isPending

isPending(): boolean

Check if this suite or its parent suite is marked as pending.

see https://mochajs.org/api/Mocha.Suite.html#isPending

Returns

boolean

Inherited from

Suite.isPending

Defined in

node_modules/@types/mocha/index.d.ts:1853


listenerCount

listenerCount(type): number

Parameters

Name Type
type string | symbol

Returns

number

Inherited from

Suite.listenerCount

Defined in

node_modules/@types/node/globals.d.ts:629


listeners

listeners(event): Function[]

Parameters

Name Type
event string | symbol

Returns

Function[]

Inherited from

Suite.listeners

Defined in

node_modules/@types/node/globals.d.ts:626


off

off(event, listener): ISuite

Parameters

Name Type
event string | symbol
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.off

Defined in

node_modules/@types/node/globals.d.ts:622


on

on(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2034

on(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2045

on(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2056

on(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2067

on(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2078

on(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2089

on(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2100

on(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2111

on(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2122

on(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2133

on(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.on

Defined in

node_modules/@types/mocha/index.d.ts:2144


once

once(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2035

once(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2046

once(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2057

once(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2068

once(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2079

once(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2090

once(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2101

once(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2112

once(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2123

once(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2134

once(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.once

Defined in

node_modules/@types/mocha/index.d.ts:2145


prependListener

prependListener(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2038

prependListener(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2049

prependListener(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2060

prependListener(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2071

prependListener(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2082

prependListener(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2093

prependListener(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2104

prependListener(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2115

prependListener(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2126

prependListener(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2137

prependListener(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.prependListener

Defined in

node_modules/@types/mocha/index.d.ts:2148


prependOnceListener

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2039

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2050

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2061

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2072

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2083

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2094

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2105

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2116

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2127

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2138

prependOnceListener(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.prependOnceListener

Defined in

node_modules/@types/mocha/index.d.ts:2149


rawListeners

rawListeners(event): Function[]

Parameters

Name Type
event string | symbol

Returns

Function[]

Inherited from

Suite.rawListeners

Defined in

node_modules/@types/node/globals.d.ts:627


removeAllListeners

removeAllListeners(event?): ISuite

Parameters

Name Type
event? string | symbol

Returns

ISuite

Inherited from

Suite.removeAllListeners

Defined in

node_modules/@types/node/globals.d.ts:623


removeListener

removeListener(event, listener): ISuite

Parameters

Name Type
event "beforeAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2037

removeListener(event, listener): ISuite

Parameters

Name Type
event "afterAll"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2048

removeListener(event, listener): ISuite

Parameters

Name Type
event "beforeEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2059

removeListener(event, listener): ISuite

Parameters

Name Type
event "afterEach"
listener (hook: Hook) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2070

removeListener(event, listener): ISuite

Parameters

Name Type
event "suite"
listener (suite: Suite) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2081

removeListener(event, listener): ISuite

Parameters

Name Type
event "test"
listener (test: Test) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2092

removeListener(event, listener): ISuite

Parameters

Name Type
event "run"
listener () => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2103

removeListener(event, listener): ISuite

Parameters

Name Type
event "pre-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2114

removeListener(event, listener): ISuite

Parameters

Name Type
event "require"
listener (module: any, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2125

removeListener(event, listener): ISuite

Parameters

Name Type
event "post-require"
listener (context: MochaGlobals, file: string, mocha: Mocha) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2136

removeListener(event, listener): ISuite

Parameters

Name Type
event string
listener (...args: any[]) => void

Returns

ISuite

Inherited from

Suite.removeListener

Defined in

node_modules/@types/mocha/index.d.ts:2147


retries

retries(): number

Get number of times to retry a failed test.

see https://mochajs.org/api/Mocha.Suite.html#retries

Returns

number

Inherited from

Suite.retries

Defined in

node_modules/@types/mocha/index.d.ts:1811

retries(n): ISuite

Set number of times to retry a failed test.

see https://mochajs.org/api/Mocha.Suite.html#retries

Parameters

Name Type
n string | number

Returns

ISuite

Inherited from

Suite.retries

Defined in

node_modules/@types/mocha/index.d.ts:1818


run

run(): void

This will run the root suite if we happen to be running in delayed mode.

see https://mochajs.org/api/Mocha.Suite.html#run

Returns

void

Inherited from

Suite.run

Defined in

node_modules/@types/mocha/index.d.ts:2024


setMaxListeners

setMaxListeners(n): ISuite

Parameters

Name Type
n number

Returns

ISuite

Inherited from

Suite.setMaxListeners

Defined in

node_modules/@types/node/globals.d.ts:624


slow

slow(): number

Get slow ms.

see https://mochajs.org/api/Mocha.Suite.html#slow

Returns

number

Inherited from

Suite.slow

Defined in

node_modules/@types/mocha/index.d.ts:1825

slow(ms): ISuite

Set slow ms or short-hand such as "2s".

see https://mochajs.org/api/Mocha.Suite.html#slow

Parameters

Name Type
ms string | number

Returns

ISuite

Inherited from

Suite.slow

Defined in

node_modules/@types/mocha/index.d.ts:1832


timeout

timeout(): number

Get timeout ms.

see https://mochajs.org/api/Mocha.Suite.html#timeout

Returns

number

Inherited from

Suite.timeout

Defined in

node_modules/@types/mocha/index.d.ts:1797

timeout(ms): ISuite

Set timeout ms or short-hand such as "2s".

see https://mochajs.org/api/Mocha.Suite.html#timeout

Parameters

Name Type
ms string | number

Returns

ISuite

Inherited from

Suite.timeout

Defined in

node_modules/@types/mocha/index.d.ts:1804


titlePath

titlePath(): string[]

Return the title path generated by recursively concatenating the parent's title path.

see https://mochajs.org/api/Mocha.Suite.html#.Suite#titlePath

Returns

string[]

Inherited from

Suite.titlePath

Defined in

node_modules/@types/mocha/index.d.ts:2002


total

total(): number

Return the total number of tests.

see https://mochajs.org/api/Mocha.Suite.html#.Suite#total

Returns

number

Inherited from

Suite.total

Defined in

node_modules/@types/mocha/index.d.ts:2009