Skip to content

Allow hooking into listeners #117

Open
@martinszeltins

Description

@martinszeltins

Describe the feature

Currently it is possible to only hook into the callHook using beforeEach and afterEach but it would be also useful to be able to hook into hook listener e.g. onListener.

This would allow creating a better logger:

10:08:06 hook called app:user:registered (emit)
10:08:06 hook listener app:user:registered (listen)
10:08:06 hook listener app:user:registered (listen)
10:08:06 hook listener app:user:registered (listen)

Currently it is not possible to know when a listener has handled a hook.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions