Skip to content

Testing docs #2665

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

Merged
merged 4 commits into from
Jul 11, 2020
Merged

Testing docs #2665

merged 4 commits into from
Jul 11, 2020

Conversation

hanhanhan
Copy link
Contributor

@hanhanhan hanhanhan commented Jul 11, 2020

Edit Project Documentation for Testing + Troubleshooting

Description

  • Add the debug setting to use Redux DevTools to "Troubleshooting" document site.
  • Add a simple example and info about using testing with JSDOM + React Testing Library as an alternative to the test backend to "Testing" document site.

Rationale

I just spent a little too long getting this to work, looking up the DataTransfer object, reading the React DND source code, and wondering if my problem was that there wasn't a DragEvent in JSDOM.

Turns out it was simple... if you do it right  😝

Copy link
Member

@darthtrevino darthtrevino left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for the PR!


### Libraries

#### With create-react-app
Copy link
Member

Choose a reason for hiding this comment

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

I think you can actually delete this section on using create-react-app now - the libraries ship with CJS as the default module format

Copy link
Contributor Author

@hanhanhan hanhanhan Jul 11, 2020

Choose a reason for hiding this comment

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

Sure thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! I think I'm trying to push the same changes after you and that's why it's getting rejected!

Thanks for the speedy review and tidies for the spellcheck ignore.

Copy link
Member

Choose a reason for hiding this comment

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

no problem, thank you for the update!

@darthtrevino
Copy link
Member

The build failure looks like it's throwing on the spelling task - you may need to add unknown words to the spelling file at the top of the repo. If you prefer I can update your PR with those changes

@darthtrevino darthtrevino merged commit abd3132 into react-dnd:main Jul 11, 2020
darthtrevino added a commit that referenced this pull request Feb 3, 2022
* docs: spelling updates, remove CRA instructions

* docs: add DevTools to spelling

* add redux devtools config info

* re-order + add JSDOM related testing info

Co-authored-by: Chris Trevino <[email protected]>
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.

2 participants