[Recorder] Take changes from mocha@7.0.0 #8110
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
Milestone
Previously, afterEach was skipped if the test is skipped, the behavior is changed with mocha@7.0.0, afterEach gets executed even if the test is skipped.
This breaks the playback tests since the skipped tests do not have the recordings for the HTTP requests in afterEach.
Update the tests with recordings so that we don't have to check if the test is pending in afterEach. (
!this.currentTest?.isPending()
)Reference - https://github.com/Azure/azure-sdk-for-js/pull/8108/files#r400580853
The text was updated successfully, but these errors were encountered: