hermione-global-hook

1.0.1 • Public • Published

hermione-global-hook

Plugin for hermione, which adds ability to specify global beforeEach and afterEach hooks. More info about hermione plugins in hermione.

Installation

$ npm install hermione-global-hook --registry=http://npm.yandex-team.ru

Configuration

In hermione config:

module.exports = {
    // ...
 
    plugins: {
        'hermione-global-hook': {
            enabled: true, // by default
            beforeEach: function() {
                // do some staff before each test
            },
 
            afterEach: function() {
                // do some staff after each test
            }
        }
    },
 
    // ...
};

/hermione-global-hook/

    Package Sidebar

    Install

    npm i hermione-global-hook

    Weekly Downloads

    301

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.96 kB

    Total Files

    6

    Last publish

    Collaborators

    • j0tunn