strapi / codemods

A set of scripts to help migrate Strapi plugins (and in some cases Strapi applications) from v3 to v4
43 stars 13 forks source link

add unit tests #26

Closed markkaylor closed 2 years ago

markkaylor commented 2 years ago

What does it do

Adds unit tests for #23

How to test it

Confirm the unit tests provide adequate coverage for the PR mentioned above.

That PR was tested as follows:

markkaylor commented 2 years ago

I also have a question about the way getRelationObject was implemented in the previous PR. What happens if I have a relation pointing to a plugin's content type

Good question and good catch! I definitely overlooked that and it doesn't look like bi-directional relations are handled correctly for plugins. I will try to fix that this afternoon or tomorrow.