How to use the karma.stopper.stop function in karma

To help you get started, we’ve selected a few karma 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 Raagh / angular-karma_test-explorer / src / core / karma / karma-server.ts View on Github external
return new Promise(resolve => {
      if (this.karmaEventListener.isServerLoaded) {
        const stopper = require("karma").stopper;
        stopper.stop({ port: 9876 }, (exitCode: number) => {
          this.logger.info(`Karma exited succesfully`);
          resolve();
          this.karmaEventListener.stopListeningToKarma();
        });
      }
    });
  }
github Raagh / angular-karma_test-explorer / src / core / karma / karma-runner.ts View on Github external
return new Promise(resolve => {
      const stopper = require("karma").stopper;
      stopper.stop({ port: 9876 }, (exitCode: any) => {
        resolve();
      });
    });
  }
github Raagh / angular-karma_test-explorer / src / core / karma / karma-server.ts View on Github external
public stop(): void {
    if (this.karmaEventListener.isServerLoaded) {
      const stopper = require("karma").stopper;
      stopper.stop({ port: 9876 }, (exitCode: number) => {
        this.logger.info(`Karma exited succesfully`);
      });
      this.karmaEventListener.stopListeningToKarma();
    }
  }
github twilio / twilio-video.js / scripts / karma.js View on Github external
      process.once('exit', () => stopper.stop({}));
      process.once('SIGINT', () => process.exit());