-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(runner): Do not persist grep option across runs #3121
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
I signed it! |
CLAs look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure what your design goal is here. I would have expected that client.args would be the original config args unless explicitly overridden by the command line. That is what 'original' would mean to me.
But the code persists the previous values.
Maybe you want to move the save calls outside of the response handler, just inside the create() call where config
comes in. Then the restore call can be unconditional every time the handler executes. That would be simpler and I think less surprising usage.
What create call do you mean? Sorry I'm a bit confused. This is my first PR to this repo so I'm not that familiar with the codebase. |
Sorry I meant Quite a bit of karma-runner code has node modules exporting |
Calling
karma/test/unit/middleware/runner.spec.js Line 59 in c3ce1f3
config.client.args is set in test case itself. karma/test/unit/middleware/runner.spec.js Line 235 in c3ce1f3
As a result |
I think you can redefine Maybe its not too hard? |
c3ce1f3
to
ea6b52a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Fix for #2819.