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

Interactivity API: Add tests for handling arrays in deepMerge() #66218

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

michalczaplinski
Copy link
Contributor

What?

I've added new unit tests for deepMerge() to ensure it handles arrays correctly. I also grouped them under a common arrays group.

There is nothing else to test as this change only adds additional unit tests.

Copy link

github-actions bot commented Oct 17, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: michalczaplinski <[email protected]>
Co-authored-by: DAreRodz <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Contributor

@DAreRodz DAreRodz left a comment

Choose a reason for hiding this comment

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

LGTM!

Base automatically changed from fix/iapi-deep-merge-undefined-objects-reactivity to trunk October 18, 2024 10:54
@DAreRodz DAreRodz force-pushed the tests/iapi-deep-merge branch from 05b0da9 to c9361a1 Compare October 18, 2024 15:07
@DAreRodz
Copy link
Contributor

Oops! Some wild merge conflicts appeared due to merging the base branch in advance. 🙈 I had to fix them by force-pushing the commits that only belonged to this PR.

@DAreRodz DAreRodz enabled auto-merge (squash) October 18, 2024 15:36
@DAreRodz DAreRodz merged commit 2725061 into trunk Oct 18, 2024
62 checks passed
@DAreRodz DAreRodz deleted the tests/iapi-deep-merge branch October 18, 2024 15:43
@github-actions github-actions bot added this to the Gutenberg 19.6 milestone Oct 18, 2024
@cbravobernal cbravobernal changed the title iAPI: Add tests for handling arrays in deepMerge() Interactivity API: Add tests for handling arrays in deepMerge() Nov 6, 2024
karthick-murugan pushed a commit to karthick-murugan/gutenberg that referenced this pull request Nov 13, 2024
* add new tests

* updated tests

* remove one extra test

Co-authored-by: michalczaplinski <[email protected]>
Co-authored-by: DAreRodz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Interactivity API API to add frontend interactivity to blocks. [Packages] Interactivity /packages/interactivity [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants