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

Simplify storage of MOCHA_OPTIONS #600

Merged
merged 1 commit into from
Dec 26, 2022
Merged

Conversation

floehopper
Copy link
Member

This has only ever supported debug, verbose & skip_integration options. However, it currently only supports debug.

Storing these options in a Hash was always a bit over the top and since it was the only reason we needed to disabled the Style/EachWithObject Rubocop rule, it seems more sensible to use an Array instead.

I don't think that the "uniqueness" of the options in the comma-separated list was ever a motivation for storing them in a Hash and so an Array (rather than a Set) seems good enough.

Supersedes #599.

This has only ever supported `debug`, `verbose` & `skip_integration`
options. However, it currently only supports `debug`.

Storing these options in a Hash was always a bit over the top and since
it was the only reason we needed to disabled the Style/EachWithObject
Rubocop rule, it seems more sensible to use an Array instead.

I don't think that the "uniqueness" of the options in the
comma-separated list was ever a motivation for storing them in a Hash
and so an Array (rather than a Set) seems good enough.
@floehopper floehopper merged commit b70507a into main Dec 26, 2022
@floehopper floehopper deleted the simplify-mocha-options branch December 26, 2022 17:30
@floehopper
Copy link
Member Author

This was released in v2.0.3.

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.

None yet

2 participants