Kui API Documentation - v11.0.0 / @kui-shell/test / Common / ISuite
@kui-shell/test.Common.ISuite
-
Suite
↳
ISuite
- _createHook
- addListener
- addSuite
- addTest
- afterAll
- afterEach
- bail
- beforeAll
- beforeEach
- clone
- dispose
- eachTest
- emit
- eventNames
- fullTitle
- getMaxListeners
- isPending
- listenerCount
- listeners
- off
- on
- once
- prependListener
- prependOnceListener
- rawListeners
- removeAllListeners
- removeListener
- retries
- run
- setMaxListeners
- slow
- timeout
- titlePath
- total
• Optional
_kuiDestroyAfter: boolean
packages/test/src/api/common.ts:44
• app: Application
packages/test/src/api/common.ts:43
• ctx: Context
Suite.ctx
node_modules/@types/mocha/index.d.ts:1766
• delayed: boolean
Suite.delayed
node_modules/@types/mocha/index.d.ts:1772
• Optional
file: string
Suite.file
node_modules/@types/mocha/index.d.ts:1770
• parent: Suite
Suite.parent
node_modules/@types/mocha/index.d.ts:1773
• pending: boolean
Suite.pending
node_modules/@types/mocha/index.d.ts:1769
• root: boolean
Suite.root
node_modules/@types/mocha/index.d.ts:1771
• suites: Suite
[]
Suite.suites
node_modules/@types/mocha/index.d.ts:1767
• tests: Test
[]
Suite.tests
node_modules/@types/mocha/index.d.ts:1768
• title: string
Suite.title
node_modules/@types/mocha/index.d.ts:1774
▸ Protected
_createHook(title
, fn?
): Hook
Generic hook-creator.
Name | Type |
---|---|
title |
string |
fn? |
Func | AsyncFunc |
Hook
Suite._createHook
node_modules/@types/mocha/index.d.ts:2029
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2036
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2047
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2058
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2069
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2080
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2091
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2102
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2113
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2124
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2135
▸ addListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.addListener
node_modules/@types/mocha/index.d.ts:2146
▸ addSuite(suite
): ISuite
Add a test suite
.
see
https://mochajs.org/api/Mocha.Suite.html#addSuite
Name | Type |
---|---|
suite |
Suite |
Suite.addSuite
node_modules/@types/mocha/index.d.ts:1972
▸ addTest(test
): ISuite
Add a test
to this suite.
see
https://mochajs.org/api/Mocha.Suite.html#addTest
Name | Type |
---|---|
test |
Test |
Suite.addTest
node_modules/@types/mocha/index.d.ts:1979
▸ afterAll(fn?
): ISuite
Run fn(test[, done])
after running tests.
see
https://mochajs.org/api/Mocha.Suite.html#afterAll
Name | Type |
---|---|
fn? |
Func |
Suite.afterAll
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
Name | Type |
---|---|
fn? |
AsyncFunc |
Suite.afterAll
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
Name | Type |
---|---|
title |
string |
fn? |
Func |
Suite.afterAll
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
Name | Type |
---|---|
title |
string |
fn? |
AsyncFunc |
Suite.afterAll
node_modules/@types/mocha/index.d.ts:1909
▸ afterEach(fn?
): ISuite
Run fn(test[, done])
after each test case.
see
https://mochajs.org/api/Mocha.Suite.html#afterEach
Name | Type |
---|---|
fn? |
Func |
Suite.afterEach
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
Name | Type |
---|---|
fn? |
AsyncFunc |
Suite.afterEach
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
Name | Type |
---|---|
title |
string |
fn? |
Func |
Suite.afterEach
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
Name | Type |
---|---|
title |
string |
fn? |
AsyncFunc |
Suite.afterEach
node_modules/@types/mocha/index.d.ts:1965
▸ bail(): boolean
Get whether to bail after first error.
see
https://mochajs.org/api/Mocha.Suite.html#bail
boolean
Suite.bail
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
Name | Type |
---|---|
bail |
boolean |
Suite.bail
node_modules/@types/mocha/index.d.ts:1846
▸ beforeAll(fn?
): ISuite
Run fn(test[, done])
before running tests.
see
https://mochajs.org/api/Mocha.Suite.html#beforeAll
Name | Type |
---|---|
fn? |
Func |
Suite.beforeAll
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
Name | Type |
---|---|
fn? |
AsyncFunc |
Suite.beforeAll
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
Name | Type |
---|---|
title |
string |
fn? |
Func |
Suite.beforeAll
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
Name | Type |
---|---|
title |
string |
fn? |
AsyncFunc |
Suite.beforeAll
node_modules/@types/mocha/index.d.ts:1881
▸ beforeEach(fn?
): ISuite
Run fn(test[, done])
before each test case.
see
https://mochajs.org/api/Mocha.Suite.html#beforeEach
Name | Type |
---|---|
fn? |
Func |
Suite.beforeEach
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
Name | Type |
---|---|
fn? |
AsyncFunc |
Suite.beforeEach
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
Name | Type |
---|---|
title |
string |
fn? |
Func |
Suite.beforeEach
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
Name | Type |
---|---|
title |
string |
fn? |
AsyncFunc |
Suite.beforeEach
node_modules/@types/mocha/index.d.ts:1937
▸ clone(): Suite
Return a clone of this Suite
.
see
https://mochajs.org/api/Mocha.Suite.html#clone
Suite
Suite.clone
node_modules/@types/mocha/index.d.ts:1790
▸ dispose(): void
Cleans all references from this suite and all child suites.
https://mochajs.org/api/suite#dispose
void
Suite.dispose
node_modules/@types/mocha/index.d.ts:1986
▸ 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
Name | Type |
---|---|
fn |
(test : Test ) => void |
Suite.eachTest
node_modules/@types/mocha/index.d.ts:2017
▸ emit(name
, hook
): boolean
Name | Type |
---|---|
name |
"beforeAll" |
hook |
Hook |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2040
▸ emit(name
, hook
): boolean
Name | Type |
---|---|
name |
"afterAll" |
hook |
Hook |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2051
▸ emit(name
, hook
): boolean
Name | Type |
---|---|
name |
"beforeEach" |
hook |
Hook |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2062
▸ emit(name
, hook
): boolean
Name | Type |
---|---|
name |
"afterEach" |
hook |
Hook |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2073
▸ emit(name
, suite
): boolean
Name | Type |
---|---|
name |
"suite" |
suite |
Suite |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2084
▸ emit(name
, test
): boolean
Name | Type |
---|---|
name |
"test" |
test |
Test |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2095
▸ emit(name
): boolean
Name | Type |
---|---|
name |
"run" |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2106
▸ emit(name
, context
, file
, mocha
): boolean
Name | Type |
---|---|
name |
"pre-require" |
context |
MochaGlobals |
file |
string |
mocha |
Mocha |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2117
▸ emit(name
, module
, file
, mocha
): boolean
Name | Type |
---|---|
name |
"require" |
module |
any |
file |
string |
mocha |
Mocha |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2128
▸ emit(name
, context
, file
, mocha
): boolean
Name | Type |
---|---|
name |
"post-require" |
context |
MochaGlobals |
file |
string |
mocha |
Mocha |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2139
▸ emit(name
, ...args
): boolean
Name | Type |
---|---|
name |
string |
...args |
any [] |
boolean
Suite.emit
node_modules/@types/mocha/index.d.ts:2150
▸ eventNames(): (string
| symbol
)[]
(string
| symbol
)[]
Suite.eventNames
node_modules/@types/node/globals.d.ts:633
▸ 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
string
Suite.fullTitle
node_modules/@types/mocha/index.d.ts:1994
▸ getMaxListeners(): number
number
Suite.getMaxListeners
node_modules/@types/node/globals.d.ts:625
▸ isPending(): boolean
Check if this suite or its parent suite is marked as pending.
see
https://mochajs.org/api/Mocha.Suite.html#isPending
boolean
Suite.isPending
node_modules/@types/mocha/index.d.ts:1853
▸ listenerCount(type
): number
Name | Type |
---|---|
type |
string | symbol |
number
Suite.listenerCount
node_modules/@types/node/globals.d.ts:629
▸ listeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
Suite.listeners
node_modules/@types/node/globals.d.ts:626
▸ off(event
, listener
): ISuite
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
Suite.off
node_modules/@types/node/globals.d.ts:622
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2034
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2045
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2056
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2067
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2078
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2089
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2100
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2111
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2122
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2133
▸ on(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.on
node_modules/@types/mocha/index.d.ts:2144
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2035
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2046
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2057
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2068
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2079
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2090
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2101
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2112
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2123
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2134
▸ once(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.once
node_modules/@types/mocha/index.d.ts:2145
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2038
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2049
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2060
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2071
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2082
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2093
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2104
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2115
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2126
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2137
▸ prependListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.prependListener
node_modules/@types/mocha/index.d.ts:2148
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2039
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2050
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2061
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2072
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2083
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2094
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2105
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2116
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2127
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2138
▸ prependOnceListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.prependOnceListener
node_modules/@types/mocha/index.d.ts:2149
▸ rawListeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
Suite.rawListeners
node_modules/@types/node/globals.d.ts:627
▸ removeAllListeners(event?
): ISuite
Name | Type |
---|---|
event? |
string | symbol |
Suite.removeAllListeners
node_modules/@types/node/globals.d.ts:623
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeAll" |
listener |
(hook : Hook ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2037
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterAll" |
listener |
(hook : Hook ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2048
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"beforeEach" |
listener |
(hook : Hook ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2059
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"afterEach" |
listener |
(hook : Hook ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2070
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"suite" |
listener |
(suite : Suite ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2081
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"test" |
listener |
(test : Test ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2092
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"run" |
listener |
() => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2103
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"pre-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2114
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"require" |
listener |
(module : any , file : string , mocha : Mocha ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2125
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
"post-require" |
listener |
(context : MochaGlobals , file : string , mocha : Mocha ) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2136
▸ removeListener(event
, listener
): ISuite
Name | Type |
---|---|
event |
string |
listener |
(...args : any []) => void |
Suite.removeListener
node_modules/@types/mocha/index.d.ts:2147
▸ retries(): number
Get number of times to retry a failed test.
see
https://mochajs.org/api/Mocha.Suite.html#retries
number
Suite.retries
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
Name | Type |
---|---|
n |
string | number |
Suite.retries
node_modules/@types/mocha/index.d.ts:1818
▸ 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
void
Suite.run
node_modules/@types/mocha/index.d.ts:2024
▸ setMaxListeners(n
): ISuite
Name | Type |
---|---|
n |
number |
Suite.setMaxListeners
node_modules/@types/node/globals.d.ts:624
▸ slow(): number
Get slow ms
.
see
https://mochajs.org/api/Mocha.Suite.html#slow
number
Suite.slow
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
Name | Type |
---|---|
ms |
string | number |
Suite.slow
node_modules/@types/mocha/index.d.ts:1832
▸ timeout(): number
Get timeout ms
.
see
https://mochajs.org/api/Mocha.Suite.html#timeout
number
Suite.timeout
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
Name | Type |
---|---|
ms |
string | number |
Suite.timeout
node_modules/@types/mocha/index.d.ts:1804
▸ 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
string
[]
Suite.titlePath
node_modules/@types/mocha/index.d.ts:2002
▸ total(): number
Return the total number of tests.
see
https://mochajs.org/api/Mocha.Suite.html#.Suite#total
number
Suite.total
node_modules/@types/mocha/index.d.ts:2009