Constructors
constructor
new Mocha( options?: object ) : Mocha
Parameters
Optional options: object
Optional bail?: boolean
Optional grep?: RegExp
Optional reporter?: string
Optional timeout?: number
Optional ui?: string
Methods
addFile
addFile( file: string ) : Mocha
asyncOnly
asyncOnly( value: boolean ) : Mocha
bail
bail( value?: boolean ) : Mocha
enableTimeouts
enableTimeouts( value: boolean ) : Mocha
globals
globals( value: string ) : Mocha
globals( values: string [] ) : Mocha
grep
grep( value: string ) : Mocha
grep( value: RegExp ) : Mocha
ignoreLeaks
ignoreLeaks( value: boolean ) : Mocha
noHighlighting
noHighlighting( value: boolean ) : Mocha
reporter
reporter( name: string ) : Mocha
reporter( reporter: function ) : Mocha
Parameters
Parameters
reporter: function
( runner: IRunner , options: any ) : any
run
run( onComplete?: function ) : IRunner
Parameters
Optional onComplete: function
slow
slow( value: number ) : Mocha
throwError
throwError( error: Error ) : void
timeout
timeout( value: number ) : Mocha
useColors
useColors( value: boolean ) : Mocha
useInlineDiffs
useInlineDiffs( value: boolean ) : Mocha
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Enables growl support.