import {StopLocalServer} from '@serenity-js/local-server/lib/screenplay/interactions'
public class | source

StopLocalServer

Stops the local server. Should be used in afterEach block to make sure that the server is correctly shut down even when the test fails.

Extends:

Interaction → StopLocalServer

Static Method Summary

Static Public Methods
public static

Stops the server if it's running. If the server hasn't been started, this interaction does nothing.

Method Summary

Public Methods
public

performAs(actor: UsesAbilities & CollectsArtifacts & AnswersQuestions): Promise<void>

Makes the provided Actor perform this Interaction.

public

toString(): string

Generates a description to be used when reporting this Activity.

Static Public Methods

public static ifRunning(): Interaction source

Stops the server if it's running. If the server hasn't been started, this interaction does nothing.

Returns:

Interaction

Public Methods

public performAs(actor: UsesAbilities & CollectsArtifacts & AnswersQuestions): Promise<void> source

Makes the provided Actor perform this Interaction.

Params:

NameTypeAttributeDescription
actor UsesAbilities & CollectsArtifacts & AnswersQuestions

Returns:

Promise<void>

public toString(): string source

Generates a description to be used when reporting this Activity.

Returns:

string