Skip to content

Mocha hooks do not work as expected in 1.14.0 #214

@ghost

Description

After the release of 1.14.0 version global before and beforeEach hooks do not work as expected.
Global before hook is being run inside each test and beforeEach hook is being run before each test as much times as there are feature files in project.
To reproduce this issue I've created a small project.

Steps to reproduce

  • git clone project
  • npm install
  • npm run run
  • run all specs
    Tests won't have any before hook and there will be 2 beforeEach hooks in output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions