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: setup()

setup(body): void

Register a setup(fn) body, run before every scenario. Its return value becomes the per-scenario context passed to the body (and to teardown).

Parameters

body

() => any

Returns

void