Closed ockham closed 7 years ago
I researched some and this was introduced in the inital commit of the repo. The only package I can see that is dependent on it is enzyme which is also just a devDependency. I don't know if this sub-depencency prevents us from removing this, though.
Hmm, you're right :-/
rm -r node_modules/
npm install
npm run test
gives
react-addons-test-utils is an implicit dependency in order to support react@0.13-14. Please add the appropriate version to your devDependencies. See https://github.com/airbnb/enzyme#installation
Makes me wonder if we can make it work if we force i18n-calypso
to use React >=15.
Okay, so I tentatively updated enzyme
to 2.9.1
(which is the latest 2.x version). That gave me
Error: react-dom@15.5+ and react-test-renderer are implicit dependencies when using react@15.5+ with enzyme. Please add the appropriate version to your devDependencies. See https://github.com/airbnb/enzyme#installation
3189d1f fixes that. Think that's legit?
I'm pretty sure as the tests still pass (and enzyme is only used for them).
Cool, I'll merge this then!
To test: Verify that this isn't actually used anywhere in the code.
Relevant for https://github.com/Automattic/wp-calypso/pull/19083