API Reference

screenplay/abilities

summary
public

An Ability that enables the Actor to manage a local Node.js server.

public

T RequestListener: function(request: http.IncomingMessage, response: http.ServerResponse): void

A requestListener function that Node's http.createServer or https.createServer would accept.

public

T ServerWithShutdown: Server & { shutdown: (callback: (error?: Error) => void) => void }

A net~Server with an added shutdown method.

public

T SupportedProtocols: Object

The protocol supported by the instance of the ServerWithShutdown, wrapped by the ManageALocalServer Ability.

screenplay/interactions

summary
public

Starts local server so that a test can interact with it.

public

Stops the local server.

screenplay/questions

summary
public