enzymejs / enzyme-matchers

Jasmine/Jest assertions for enzyme
MIT License
892 stars 116 forks source link

README must explain why not jest-environment-jsdom #302

Open alexanderkjeldaas opened 5 years ago

alexanderkjeldaas commented 5 years ago

It is impossible to know why I should use this over jest-environment-jsdom by reading the documentation.

ljharb commented 5 years ago

? You shouldn’t, as they’re unrelated. This package is assertion matchers for enzyme wrappers; that one sets up the DOM for your tests.

blainekasten commented 5 years ago

I believe @alexanderkjeldaas is referring to jest-environment-enzyme which is a superset of the jsdom environment.

The documentation for this has been difficult. It's by no means a requirement, just an optional package that can inject globals for React and Enzyme so you don't have to import them in your tests.

If you have any suggestions on how to improve i'm open ears!