Skip to content

Conversation

@michaelw85
Copy link
Contributor

Resolves #231

@michaelw85 michaelw85 requested a review from a team as a code owner April 25, 2025 11:42
@codecov
Copy link

codecov bot commented Apr 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@swissspidy
Copy link
Member

Thanks for opening this PR, appreciate the initiative!

Please note that most tests here are Behat tests instead of PHPUnit tests, see features/makejson.feature. We should follow that in this PR.

@swissspidy swissspidy changed the title Add ability to pass extensions to make json command Add ability to pass extensions to make-json command Apr 25, 2025
@michaelw85
Copy link
Contributor Author

Thanks for opening this PR, appreciate the initiative!

Please note that most tests here are Behat tests instead of PHPUnit tests, see features/makejson.feature. We should follow that in this PR.

Alright, I thought it would be pretty easy to unit test (did struggle a bit with mocking though 😅 ) I will have a look at the Behat tests and add some.

@michaelw85
Copy link
Contributor Author

@swissspidy I've added some basic scenarios similar to the unit tests and everything passes 🥳

@michaelw85
Copy link
Contributor Author

@swissspidy I've updated the PR, resolved your feedback. Removed files and the new unit tests in favor of Behat tests, and lastly improved removing .min from minified files. Let me know if you see anything else that needs improvement.

@michaelw85 michaelw85 requested a review from swissspidy April 25, 2025 18:52
@swissspidy swissspidy added this to the 2.6.5 milestone Apr 25, 2025
@swissspidy swissspidy merged commit 5d79390 into wp-cli:main Apr 25, 2025
52 checks passed
@michaelw85 michaelw85 deleted the #231_add_custom_extension_support branch April 28, 2025 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search for translation sources with custom extensions via make-json

2 participants