How to use the @serenity-js/local-server.StopLocalServer.ifRunning function in @serenity-js/local-server

To help you get started, we’ve selected a few @serenity-js/local-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jan-molak / serenity-js / examples / cucumber-rest-api-level-testing / features / step_definitions / api-level.steps.ts View on Github external
After(function () {
    return this.stage.theActorCalled('Apisitt').attemptsTo(
        StopLocalServer.ifRunning(),
    );
});
github jan-molak / serenity-js / packages / protractor / spec / screenplay / questions / Cookie.spec.ts View on Github external
        afterEach(() => Sid.attemptsTo(StopLocalServer.ifRunning()));
        afterEach(() => Sid.attemptsTo(DeleteCookies.all()));
github jan-molak / serenity-js / examples / protractor-cucumber / features / step_definitions / ui.steps.ts View on Github external
After(function () {
    return this.stage.theActorCalled('Umbra').attemptsTo(
        StopLocalServer.ifRunning(),
    );
});

@serenity-js/local-server

Enables Serenity/JS Actors to manage local Node.js test servers, such as Express, Koa or Restify

Apache-2.0
Latest version published 6 days ago

Package Health Score

72 / 100
Full package analysis