Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

This package has been deprecated

Author message:

Package is no longer maintained

gemini-events

0.1.1 • Public • Published

gemini-events

A simple plugin for Gemini to be able to listen to events.

Install

npm install gemini-events

Usage

Define the event callbacks in your Gemini configuration file and pass them as configuration options to the plugin:

startRunner - emitted before the start of test or update command. If you return a promise from the event handler, the start of the command will be delayed until the promise resolves.

endRunner - emitted after the end of the test or update command.

//.gemini.js

function startRunner () {
    
}

function endRunner () {
        
}

module.exports = {
  rootUrl: "http://yandex.com",
  "system": {
    "plugins": {
      "events": {
        "startRunner": startRunner,
        "endRunner": endRunner
      }
    }
  },
  "browsers": {
    ...
  }
}

License

gemini-events is licensed under the MIT license.

Install

npm i gemini-events

DownloadsWeekly Downloads

8

Version

0.1.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar