flixpressllc / ReactBasicTemplateEditor

1 stars 0 forks source link

chore: upgrade enzyme to latest #75

Open mtliendo opened 6 years ago

mtliendo commented 6 years ago

Enzyme is on the latest version to allow easier transition to later versions of React. Note that cDM is automatically called on shallow rendering in this version, thus allowing for quicker test runs since the needs for mounting is greatly minimized.

Tests were updated to allow coverage to remain the same. Notable breaking changes seemed to be that .get() returns the actual react element as opposed to an enzyme-wrapper, but other than that, I didn't see anything else.

For a complete reference, please refer to the migration docs