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 issue #58 cliOptions.fix is ignored #200

Merged
merged 6 commits into from Aug 16, 2023

Conversation

hassoubeat
Copy link
Contributor

@hassoubeat hassoubeat commented Aug 15, 2023

Hi !

I have fixed issue 58.

I just got it to work for now, so if you have any comments, please comment!

src/runner/runESLint.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

This would need tests to cover whatever's being fixed.

src/runner/runESLint.js Outdated Show resolved Hide resolved
hassoubeat and others added 2 commits August 15, 2023 13:37
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@hassoubeat
Copy link
Contributor Author

@ljharb

This would need tests to cover whatever's being fixed.

Thanks for the comment.
I'd be glad to get your comments if I'm wrong in my plan on how to write test cases.

I am thinking that I could pass the cliOptions to the mkTestResults and make sure that the cliOptions.fix is not overwritten with undefined on the test code.

@ljharb
Copy link
Collaborator

ljharb commented Aug 15, 2023

That seems like it would work.

Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

LGTM assuming the test fails prior to the change, and passes after

src/runner/__tests__/runESLint.test.js Outdated Show resolved Hide resolved
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@ljharb ljharb requested a review from SimenB August 15, 2023 06:43
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

👍

@SimenB SimenB merged commit 2d734a2 into jest-community:main Aug 16, 2023
90 checks passed
@SimenB
Copy link
Member

SimenB commented Sep 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cliOptions.fix is ignored
3 participants