Skip to content

Conversation

@kirill-golovan
Copy link
Contributor

@kirill-golovan kirill-golovan commented Jul 24, 2021

Description of the Change

Fixed incorrect comparison operator in isModuleNotFoundError function in lib/cli/config.js so Mocha rethrows error from cwd-relative path js config file

Why should this be in core?

It is already in core but doesn't work as expected

Benefits

Mocha rethrows error from cwd-relative path js config file

Possible Drawbacks

None that I can think of

Applicable issues

Closes #4701
Is this a breaking change (major release)? No
Is it an enhancement (minor release)? No
Is it a bug fix, or does it not impact production code (patch release)? Yes

@coveralls
Copy link

coveralls commented Jul 24, 2021

Coverage Status

Coverage increased (+0.03%) to 94.375% when pulling 334f1d3 on kirill-golovan:kg-fix-module-not-found into 3722201 on mochajs:master.

@juergba
Copy link
Contributor

juergba commented Jul 24, 2021

@kirill-golovan thank you.
I will review within the next few days. Please sign the licence agreement.

@kirill-golovan
Copy link
Contributor Author

@kirill-golovan thank you.
I will review within the next few days. Please sign the licence agreement.

Sure.

@juergba juergba self-requested a review July 24, 2021 15:04
@juergba juergba added type: bug a defect, confirmed by a maintainer semver-patch implementation requires increase of "patch" version number; "bug fixes" labels Jul 24, 2021
Copy link
Contributor

@juergba juergba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirill-golovan thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: node.js command-line-or-Node.js-specific semver-patch implementation requires increase of "patch" version number; "bug fixes" type: bug a defect, confirmed by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mocha doesn't rethrow error from cwd-relative path js config file

3 participants