Skip to main content

touchstone.suitemetadataargs.caseinvoketype

Home > @pebula/touchstone > SuiteMetadataArgs > caseInvokeType

SuiteMetadataArgs.caseInvokeType property

Define how cases in the suite are invoked.

  • function: Invoke like standalone function, no context (this) is set - method: Invoke as part of the class with the context (this). I.E: A new instance of the suite is created and used as the context for all cases.

Signature:

caseInvokeType?: 'method' | 'function';