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

jest-glamor-react docs #390

Merged
merged 4 commits into from
Oct 8, 2017
Merged

Conversation

greggb
Copy link
Member

@greggb greggb commented Oct 8, 2017

What: Closes #208 - Add docs for jest-glamor-react

Checklist:

  • Documentation
  • Tests N/A
  • Code complete

I also have a before and after screenshot that could be useful, but with the redesign of the site I wasn't sure where that might fit in. Included below.

snapshots

@tkh44
Copy link
Member

tkh44 commented Oct 8, 2017

I went ahead and added the img to the docs. Thanks Gregg!

@tkh44 tkh44 added the merge me! label Oct 8, 2017
@tkh44 tkh44 self-requested a review October 8, 2017 04:57
@greggb
Copy link
Member Author

greggb commented Oct 8, 2017

Sounds good, thanks Kye.

```

### Notes
It's recommended to set your Jest `testEnvironment` to `jsdom`, but you can mock global browser objects instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't checked, does manually mocking global browser objects work with jest-glamor-react?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally just set my env to jsdom, but the docs say it does. https://github.com/kentcdodds/jest-glamor-react#usage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 👍

@emmatown emmatown merged commit d2ae53a into emotion-js:master Oct 8, 2017
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

Successfully merging this pull request may close these issues.

Document how to test components with jest-glamor-react
3 participants