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

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

Open
alexanderkjeldaas opened this issue Apr 11, 2019 · 2 comments
Open

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

alexanderkjeldaas opened this issue Apr 11, 2019 · 2 comments

Comments

@alexanderkjeldaas
Copy link

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

@ljharb
Copy link
Member

ljharb commented Apr 11, 2019

? 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
Copy link
Collaborator

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants