Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Function: scenario()

Call Signature

scenario(name, body): void

Register a scenario(...): with a third arg, a is the options object and b the body; otherwise a is the body. Persists the body and records tags/skip/only from the options.

Parameters

name

string

body

ScenarioBody

Returns

void

Call Signature

scenario(name, opts, body): void

Register a scenario(...): with a third arg, a is the options object and b the body; otherwise a is the body. Persists the body and records tags/skip/only from the options.

Parameters

name

string

opts

ScenarioOptions

body

ScenarioBody

Returns

void