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

Fix error rethrow from cwd-relative path js config file #4702

Merged
merged 1 commit into from Jul 25, 2021
Merged

Fix error rethrow from cwd-relative path js config file #4702

merged 1 commit into from Jul 25, 2021

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
Member

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
Member

@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

@juergba juergba added the run-browser-test run browser tests on forked PR if code is safe label Jul 25, 2021
@github-actions github-actions bot removed the run-browser-test run browser tests on forked PR if code is safe label Jul 25, 2021
@juergba juergba merged commit 7313890 into mochajs:master Jul 25, 2021
@juergba juergba added this to the next milestone Jul 25, 2021
@juergba juergba added the area: node.js command-line-or-Node.js-specific label Jul 25, 2021
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