globalSetup() / setup()
globalSetup(options)
Set any global parameters, headers, etc. that need to be sent with each HTTP request that Frisby sends out.
Most people use this for global headers, authentication, cookies, etc.
Usage Examples
Headers
setup(options)
The setup
method is similar to globalSetup
, but it only affects a single specific test that it is attached to.
NOTE: The setup
call MUST COME BEFORE calls to get
, post
, fetch
, etc.
Usage Examples
Last updated