Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [Common Recorder] Tests with this.skip() must execute the afterEach hook #6833

Closed
wants to merge 1 commit into from

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Jan 8, 2020

Issue

This is a bug in the mocha library that afterEach block is not being executed if a test is skipped unlike beforeEach.

The issue is fixed in mocha 7.0.0 - mochajs/mocha#3741
However, after updating mocha to 7.0.0 in the package.json,
rush update failed as below.

image

This issue occurred because mocha-multi is still relying on an older version of mocha.

For comparison, npm throws a warning only
image

Logged an issue in the mocha-multi repo asking them to support [email protected]

Issue - #5697

@HarshaNalluru HarshaNalluru added Client This issue points to a problem in the data-plane of the library. test-utils-recorder Label for the issues related to the common recorder labels Jan 8, 2020
@HarshaNalluru HarshaNalluru changed the title [Common Recorder] Tests with this.skip() must execute the afterEach hook [WIP] [Common Recorder] Tests with this.skip() must execute the afterEach hook Jan 8, 2020
@ramya-rao-a
Copy link
Contributor

Closing as we have already moved to mocha v7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. test-utils-recorder Label for the issues related to the common recorder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants